Breyta

Deila með


ArraySegment<T>.IReadOnlyList<T>.Item[Int32] Property

Definition

Gets the element at the specified index of the array segment.

property T System::Collections::Generic::IReadOnlyList<T>::Item[int] { T get(int index); };
T System.Collections.Generic.IReadOnlyList<T>.Item[int index] { get; }
member this.System.Collections.Generic.IReadOnlyList<T>.Item(int) : 'T
 ReadOnly Property Item(index As Integer) As T Implements IReadOnlyList(Of T).Item

Parameters

index
Int32

The zero-based index of the element to get.

Property Value

T

The element at the specified index.

Implements

Exceptions

index is not a valid index in the ArraySegment<T>.

The underlying array is null.

The property is set.

Remarks

This member is an explicit interface member implementation. It can be used only when the ArraySegment<T> instance is cast to an IReadOnlyList<T> interface.

Applies to