public TTo this[
int y,
int x
] { get; set; }
Public Default Property Item (
y As Integer,
x As Integer
) As TTo
Get
Set
public:
property TTo default[int y, int x] {
TTo get (int y, int x);
void set (int y, int x, TTo value);
}
member Item : 'TTo 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 use the GetElementUnsafe/SetElementUnsafe 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. |
NotSupportedException | .NET Framework only: you access this member in a partially trusted AppDomain that does not allow executing unverifiable code. |