Note
This method returns a value by reference. If this library is used by an older compiler that does not support such members,
use the indexer instead.
public ref TTo GetElementReference(
int z,
int y,
int x
)
Public Function GetElementReference (
z As Integer,
y As Integer,
x As Integer
) As TTo
public:
TTo% GetElementReference(
int z,
int y,
int x
)
member GetElementReference :
z : int *
y : int *
x : int -> 'TTo
Though this method does not validate the coordinates separately, it does not allow indexing beyond the Length of the underlying Buffer. To allow getting any item in the actual underlying array use then use the GetElementReferenceUnsafe method instead.
IndexOutOfRangeException | The specified indices refer to an item outside the bounds of the underlying Buffer. |
VerificationException | .NET Framework only: you execute this method in a partially trusted AppDomain that does not allow executing unverifiable code. |