Use the Dictionary class. It should do what you need.
Reference is here.
So you can do something like this:
IDictionary<string, int> dict = new Dictionary<string, int>();
dict["red"] = 10;
dict["blue"] = 20;
Use the Dictionary class. It should do what you need.
Reference is here.
So you can do something like this:
IDictionary<string, int> dict = new Dictionary<string, int>();
dict["red"] = 10;
dict["blue"] = 20;