How find row count in a 2D array in VB.net?

Viewed 28157

How to find the number of horizontal rows in a 2D array ?

I have :

   Dim i(,) As Integer = {{2, 5, 6, 7}, {32, 5, 4, 2}}

Find the number of rows in i ?

For example :

 // 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 !

Please help !

3 Answers
Related