Answers for "c# multidimensional array get row length"

C#
13

c# length 2d array

int rowsOrHeight = ary.GetLength(0);
int colsOrWidth = ary.GetLength(1);
Posted by: Guest on May-18-2020
2

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);
Posted by: Guest on March-09-2020

C# Answers by Framework

Browse Popular Code Answers by Language