语言

ArraySegment<T>.IReadOnlyList<T>.Item[Int32] 属性

定义

获取数组段的指定索引处的元素。

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

参数

index
Int32

要获取的元素的从零开始的索引。

属性值

T

指定索引处的元素。

实现

例外

index 不是 . 中的 ArraySegment<T>有效索引。

基础数组为 null.

该属性已设置。

注解

此成员是显式接口成员实现。 仅当实例强制转换为ArraySegment<T>接口时IReadOnlyList<T>,才能使用它。

适用于