Span<T>.Item[Int32] 屬性

定義

取得位於指定索引的元素,該索引以零起始。

public:
 property T % default[int] { T % get(int index); };
public ref T this[int index] { get; }
member this.Item(int) : 'T
Default Public ReadOnly Property Item(index As Integer) As T

參數

index
Int32

元素以零起始的索引。

屬性值

T

在指定索引上的項目。

例外狀況

index 小於零,或是大於或等於 Length

適用於