我有一个数组列表:
List<int[]> a = new List<int[]>();
我把它放在几个数组中
int[] b = new int[3] {1,2,3};
int[] c = new int[4] {4,5,6,7};
a.Add(b);
a.Add(c);
我怎么只能打印b[1]
中的List a
?
我有一个数组列表:
List<int[]> a = new List<int[]>();
我把它放在几个数组中
int[] b = new int[3] {1,2,3};
int[] c = new int[4] {4,5,6,7};
a.Add(b);
a.Add(c);
我怎么只能打印b[1]
中的List a
?
您可以通过书写访问它
Console.WriteLine(a[0][1]);