Is this possible?
public string[,] MyArray = new string[99,999];
the above works but is either too large or not big enough.
public string[,] MainKeys = new string[,];
generates error "Array creation must have array size or array initializer"
Array.Resize(ref MyArray,100,1000);
generates error "'System.Array' does not contain a definition for 'Resize'".
Resize Mulit-dimensional array
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Bevan Shervey10 reputationPosted Jun 29, 2007, 2:19 PM EDT
AlanRank #669 · 3.6K reputationPosted Jun 29, 2007, 2:41 PM EDT
As well as the Hashtable, you could also simulate a dynamic multidimensional string array with an ArrayList of ArrayLists of strings or, if you have C# 2.0, with a generic List of List