ArraySegment<T>.Item[Int32] 属性

定义

获取或设置指定索引处的元素。Gets or sets the element at the specified index.

public:
 property T default[int] { T get(int index); void set(int index, T value); };
public T this[int index] { get; set; }
member this.Item(int) : 'T with get, set
Default Public Property Item(index As Integer) As T

参数

index
Int32

要获取或设置的元素的从零开始的索引。The zero-based index of the element to get or set.

属性值

T

指定索引处的元素。The element at the specified index.

实现

异常

index 不是 ArraySegment<T> 中的有效索引。index is not a valid index in the ArraySegment<T>.

适用于