public T this[
int y,
int x
] {
get;
set;
}
Public Default Property Item (
y As Integer,
x As Integer
) As T
Get
Set
public:
property T default[int y, int x] {
T get (int y, int x);
void set (int y, int x, T value);
}
member Item : 'T with
get,
set
Though this member does not validate the coordinates separately, it does not allow indexing beyond the Length of the underlying Buffer. To omit also the length check, allowing to get/set any element in the whole UnderlyingArray, use the GetElementUnchecked/SetElementUnchecked methods instead.
If the compiler you use supports members that return a value by reference, you can also use the GetElementReference method.
IndexOutOfRangeException | The specified indices refer to an item outside the bounds of the underlying Buffer. |