【发布时间】:2017-04-03 22:16:35
【问题描述】:
我想使用 C# 找出提供的维度中的元素数量:
int [][] arr = new int [3][];
int elements_dim0 = arr.GetLength(0); // Returns 3, which is the size of dimension. I want it to return the actual count of elements in provided dimension.
【问题讨论】:
标签: c# .net arrays multidimensional-array