ArraySegment<T>.IReadOnlyList<T>.Item[Int32] Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.