I want to store values as key,value,value pair. My data is of type
Key -> int & both values -> ulong,
How to initialize & fet
This would be an option:
Dictionary> dictionary = new Dictionary>();
If you want to add in a value: Key=1, Pair = {2,3}
dictionary.Add(1, new KeyValuePair(2, 3));
If you want to retrieve those values:
var valuePair = dictionary[1];
ulong value1 = valuePair.Key;
ulong value2 = valuePair.Value;
Or simply:
ulong value1 = dictionary[1].Key;