Gets the value at the specified position in the two-dimensional Array. The indexes are specified as 32-bit integers.
The value at the specified position in the two-dimensional Array.
Type Reason ArgumentException The current instance does not have exactly two dimensions. IndexOutOfRangeException At least one of index1 or index2 is outside the range of valid indexes for the corresponding dimension of the current instance.
The Array.GetLowerBound(int) and Array.GetUpperBound(int) methods can determine whether any of the indexes is out of bounds.
This method is an O(1) operation.