That is, I\'d like to have a tuple of values.
The use case on my mind:
Dictionary, object>
or
<
KeyValuePair is the best class to extend if you don't want to create your own classes.
int id = 33;
string description = "This is a custom solution";
DateTime created = DateTime.Now;
KeyValuePair> triple =
new KeyValuePair>();
triple.Key = id;
triple.Value.Key = description;
triple.Value.Value = created;
You can extend it to as many levels as you want.
KeyValuePair, string, string> quadruple =
new KeyValuePair, string, string>();
Note: The classes Triplet and Pair exists inside the System.Web-dll, so it's not very suitable for other solutions than ASP.NET.