Language

ArraySegment.IReadOnlyList.Item[Int32] Property

Definition

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

property T System::Collections::Generic::IReadOnlyList::Item[int] { T get(int index); };
T System.Collections.Generic.IReadOnlyList.Item[int index] { get; }
member this.System.Collections.Generic.IReadOnlyList.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.

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 instance is cast to an IReadOnlyList interface.

Applies to