is there a <key, value, value> dictionaryish type in C#?
.net, c#
Solution
No.
Create a Pair or Tuple type yourself.
Something like:
class Pair<T,V>
{
T First{get; set;}
V Second{get; set;}
}
Then you can declare a `Dictionary<string, Pair<List<int>, List<DateTime>>`.
Problem
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.