I want to store values as key,value,value pair. My data is of type
Key -> int & both values -> ulong,
How to initialize & fet
I'm not sure I understand your question correctly, but if you want to store more than one value in the value part of Dictionary, you could do something like this:
var dic = new Dictionary>();
You can use insert into the dictionary like this:
dic.Add(42, new KeyValuePair(42, 42));
dic.Add(43, new KeyValuePair(43, 43));
And fetch the values like so:
foreach (var a in dic)
{
Console.WriteLine("Key: {0}, Value1: {1}, Value2: {2}",
a.Key, a.Value.Key, a.Value.Value);
}