We have the following object
int [,] oGridCells;
which is only used with a fixed first index
int iIndex = 5; for (int iLoop
You can try this:
int[,] twoD = new int[2,2]; twoD[0, 0] = 1; twoD[0, 1] = 2; twoD[1, 0] = 3; twoD[1, 1] = 4; int[] result = twoD.Cast().Select(c => c).ToArray();
The result will be an integer array with data:
1, 2, 3, 4