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 index
)
Public Function GetElementReference (
index As Integer
) As TTo
public:
TTo% GetElementReference(
int index
)
member GetElementReference :
index : int -> 'TTo
This method validates index against Length. To allow getting any reference from the actual underlying array use the GetElementReferenceUnsafe method instead.
IndexOutOfRangeException | index is less than zero or greater or equal to Length. |
VerificationException | .NET Framework only: you execute this method in a partially trusted AppDomain that does not allow executing unverifiable code. |