getLength
GetLength is a method of the System.Array class in the .NET framework and .NET Core/.NET 5+ that returns the number of elements in a specified dimension of an array. It has the signature int GetLength(int dimension) and is invoked on an array instance.
Usage and behavior: For a multi-dimensional array, GetLength(dimension) returns the size of the given dimension. For
Relation to other array properties: GetLength is distinct from the Length property of Array. Length returns
Related concepts: GetUpperBound(int dimension) provides the upper bound index for a given dimension, which is typically