Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Nov 16, 2012 05:43 PM by Vipindas
Nov 16, 2012 05:33 PM|LINK
I am coding a module in which I would like to create a string array that can be indexed by a string value rather than an integer. For instance, I would like to be able to code:
and then later be able to reference the array values using:
How can I accomplish this? Thanks for the help!
Nov 16, 2012 05:41 PM|LINK
you are actually looking for dictionary object...
hope this helps...
Nov 16, 2012 05:43 PM|LINK
Use Dictionary<TKey, TValue>
var dict = new Dictionary<string, string>();
dict["key_name"] = "value1";