• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 163
  • Last Modified:

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
0
newbieweb
Asked:
newbieweb
  • 3
  • 2
1 Solution
 
hieloCommented:
try:
string[ , ] storeArray = { {"Cent1501", "1501"},{"Cent1502", "1502"} };

http://msdn.microsoft.com/en-us/library/aa288453(VS.71).aspx
0
 
newbiewebAuthor 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
 
newbiewebAuthor Commented:
thanks.
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now