An array that's 2X2

Please give me the correct format for this 2 X 2 array definition:

        string storeArray[2][2] = {{"Cent1501", "1501"},{"Cent1502", "1502"}};


Thanks,
newbieweb
newbiewebSr. Software EngineerAsked:
Who is Participating?
 
hieloConnect With a Mentor Commented:
try:
string[ , ] storeArray = { {"Cent1501", "1501"},{"Cent1502", "1502"} };

http://msdn.microsoft.com/en-us/library/aa288453(VS.71).aspx
0
 
newbiewebSr. Software EngineerAuthor Commented:
Thanks. But i just realized I'd be smarter using a dictionary.

Tips on doing that?
0
 
hieloCommented:
http://msdn.microsoft.com/en-us/library/xfhwa508.aspx
look at the C# example towards the bottom of the page
0
 
newbiewebSr. Software EngineerAuthor Commented:
thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.