How do you use the Array.GetLength function in C#?
Array.GetLength
What is the difference between the Length property and the GetLength functi
Length
GetLength
For 1-dimensional arrays Length and GetLength(0) are exactly the same.
GetLength(0)
For arrays of higher rank Length is the product of all GetLength(0..Rank-1) values, in other words it is always the total number of fields.
GetLength(0..Rank-1)