I do not have a lot of experience with C#, yet I am used of working with associative arrays in PHP.
I see that in C# the List class and the Array are available, but I wo
Use the Dictionary class. It should do what you need. Reference is here.
So you can do something like this:
IDictionary dict = new Dictionary(); dict["red"] = 10; dict["blue"] = 20;