What is the difference between these two methods and when would you use one instead of the other?
int[,] array = new int[4,3]; int length0 = array.GetLength(
GetUpperBound returns the highest index in the array, the GetLength returns the number of elements of the array.
GetUpperBound
GetLength
i.e. GetUpperBound = GetLength - 1