how to get the length of a row in a matrix c# code example
Example 1: how to get specific length of row in matrix c#
int[,,] multiDimensionalArray = new int[21,72,103] ;
//If n = 0 -> 21
//If n = 1 -> 72
//If n = 2 -> 103
multiDimensionalArray.GetLength(n);
Example 2: c# length 2d array
int rowsOrHeight = ary.GetLength(0);
int colsOrWidth = ary.GetLength(1);