public T this[
int index
] {
get;
set;
}
Public Default Property Item (
index As Integer
) As T
Get
Set
public:
virtual property T default[int index] {
T get (int index) sealed;
void set (int index, T value) sealed;
}
abstract Item : 'T with
get,
set
override Item : 'T with
get,
set
This member validates index against Length. To allow getting/setting any element in the 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 | index is less than zero or greater or equal to Length. |