ReadOnlySpan<T>.Item[Index] ReadOnlySpan<T>.Item[Index] ReadOnlySpan<T>.Item[Index] ReadOnlySpan<T>.Item[Index] Property

定义

重载

Item[Int32] Item[Int32] Item[Int32] Item[Int32]

从指定的从零开始的索引处的只读范围获取项。Gets an item from the read-only span at the specified zero-based index.

Item[Range] Item[Range] Item[Range] Item[Range]
Item[Index] Item[Index] Item[Index] Item[Index]

Item[Int32] Item[Int32] Item[Int32] Item[Int32]

从指定的从零开始的索引处的只读范围获取项。Gets an item from the read-only span at the specified zero-based index.

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

参数

index
Int32 Int32 Int32 Int32

要获取的元素的索引(索引从零开始)。The zero-based index of the element to get.

属性值

只读范围内的元素。The element from the read-only span.

异常

index 小于零,或者大于或等于 Lengthindex is less then zero or greater than or equal to Length.

Item[Range] Item[Range] Item[Range] Item[Range]

public:
 property ReadOnlySpan<T> default[Range] { ReadOnlySpan<T> get(Range range); };
public ReadOnlySpan<T> this[Range range] { get; }
member this.Item(Range) : ReadOnlySpan<'T>
Default Public ReadOnly Property Item(range As Range) As ReadOnlySpan(Of T)

参数

属性值

Item[Index] Item[Index] Item[Index] Item[Index]

public:
 property T& ^ default[Index] { T& ^ get(Index index); };
public T& this[Index index] { get; }
member this.Item(Index) : T&
Default Public ReadOnly Property Item(index As Index) As T&

参数

属性值

适用于