METHOD
Array.GetLength
Reports the size along the specified zero-based dimension.
Formal Syntax & Structure
csharp syntaxcsharp
array.GetLength(dimension)Working Example
Example Snippetcsharp
int[,] grid = new int[2, 3]; int columns = grid.GetLength(1);