public TTo this[
int index
] { get; set; }
Public Default Property Item (
index As Integer
) As TTo
Get
Set
public:
virtual property TTo default[int index] {
TTo get (int index) sealed;
void set (int index, TTo value) sealed;
}
abstract Item : 'TTo with get, set
override Item : 'TTo with get, set
This member validates index against Length. To allow getting/setting any item in the actual underlying array 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 | index is less than zero or greater or equal to Length. |
NotSupportedException | .NET Framework only: you access this member in a partially trusted AppDomain that does not allow executing unverifiable code. |