I want to store values as key,value,value pair. My data is of type
Key -> int & both values -> ulong,
How to initialize & fet
Create a structure to store your values:
struct ValuePair
{
public ulong Value1;
public ulong Value2;
}
Dictionary initialization:
Dictionary dictionary = new Dictionary();
Maybe List is enough, if you use int as key?
List:
List list = new List();
ValuePair
can be added to the list
as following:
list.Add(new ValuePair { Value1 = 1, Value2 = 2 });