如何找到2D数组中水平行的数量?
我有 :
Dim i(,) As Integer = {{2, 5, 6, 7}, {32, 5, 4, 2}}
查找i中的行数?
例如 :
// Here, array i has 2 sets of data i.e. 2 rows
// set1 = {2,5,6,7} and set2 = {32,5,4,2}
// So, I want the number of sets i.e 2 in this case !
请帮忙 !
最佳答案
GetLength方法可用于找出数组任何维度的长度。
关于.net - 如何在VB.net中的2D数组中查找行数?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6870424/