1.int[][]是嵌套数组,即数组的数组,只能算是一维数组,可以理解为一维数组的值为数组,且作为值的数组长度不必统一,如下:
int[][] a=new int[][] {
new int[3] {0,0,0 },
new int[4]{1,1,1,4 } };
如上数组,数组长度为2,仅包含两个元素 new int[3] {0,0,0 },new int[4]{1,1,1,4 }
a[0].Length=3
a[1].Length=4
2.object[,] cells= new int[10,5];
二维数组,第一维度row长度=10,第二维度的column长度=5,可以想象成10行5列的Excel表格
cells.GetLength(0)=10,
cells.GetLength(1)=5
cells.Length=10*5=50