I need something resembling the following:
Dictionary<string, List<int>, List<DateTime>> =
new Dictionary<string, List<int>, List<DateTime>>()
are there any built in class in C# which offer something like the above?
Edit: for people who can’t see why anything like this could ever possibly be useful…
Imagine if you could write something like this:
mySuperDictionary SuperDictionary<string, List<int>X, List<int>Y> .....
myXvalues = mySuperDictionary["myKey"].X;
myYvalues = mySuperDictionary["myKey"].Y;
personally I think that would be a pretty neat.
No.
Create a Pair or Tuple type yourself.
Something like:
Then you can declare a
Dictionary<string, Pair<List<int>, List<DateTime>>.