語言

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

適用於