You have created an Array of the type Array called m_arrays...
The array is not initialized and the type (Array) is a reference type..so
the value is null...
//The following code should explain it...
Array[] m_arrays = new Array[3];
Array[] firstArray = new Array[10];
Array[] secondArray = new Array[10];
Array[] thirdArray = new Array[10];
m_arrays[0] = firstArray;
m_arrays[1] = secondArray;
m_arrays[2] = thirdArray;
//An Array of Integers..initialized to 1, 2, 3
int[] myArray = new int[] { 1, 2, 3 };
//An other way
int[] myOtherIntArray = new int[3];
for (int i = 0; i < myOtherIntArray.Length; i++)
myOtherIntArray[i] = i + 1;
/Oscar
"Steve" <ss*@sss.com> wrote in message
news:e9**************@TK2MSFTNGP10.phx.gbl...
this code:
private Array[] m_arrays = new Array[3];
results in an array of 3 null Array objects. What am I missing?