Modifica

Condividi tramite


ReadOnlyRefEnumerable<T>.Item[] Property

Definition

Overloads

Item[Index]

Gets the element at the specified zero-based index.

Item[Int32]

Gets the element at the specified zero-based index.

Item[Index]

Gets the element at the specified zero-based index.

public ref readonly T this[Index index] { get; }
member this.Item(Index) : 'T
Default Public ReadOnly Property Item(index As Index) As T

Parameters

index
Index

The zero-based index of the element.

Property Value

T

A reference to the element at the specified index.

Exceptions

Thrown when index is invalid.

Applies to

Item[Int32]

Gets the element at the specified zero-based index.

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

Parameters

index
Int32

The zero-based index of the element.

Property Value

T

A reference to the element at the specified index.

Exceptions

Thrown when index is invalid.

Applies to