IReadOnlyList(T).Item Property
Collapse the table of content
Expand the table of content

ArraySegment<T>.IReadOnlyList<T>.Item Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

T IReadOnlyList<T>.this[
	int index
] { get; }

Parameters

index
Type: System.Int32
The zero-based index of the element to get.

Property Value

Type: T
The element at the specified index.

Implements

IReadOnlyList<T>.Item[Int32]

ExceptionCondition
ArgumentOutOfRangeException

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

NotSupportedException

The property is set.

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.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2016 Microsoft