楼上说的对,你可以这样定义:
int[][] iArray = new int[][]
{
new int[] {1,3,5,7,9},
new int[] {0,2},
new int[] {5,11, 22 },
new int[] {3,5,7,10, 32}
};
int[,] iArray = new int[,] { { 1, 3, 5, 7, 9 }, { 0, 2,0,0,0 }, { 5, 11, 22,0,0 }, { 3, 5, 7, 10, 32 } };
int[,]里的元素必须长度一样,int[][]就没要求