ArraySegment<T>.Item[Int32] Property

Definition

Gets or sets the element at the specified index.

C#
public T this[int index] { get; set; }

Parameters

index
Int32

The zero-based index of the element to get or set.

Property Value

T

The element at the specified index.

Implements

Exceptions

index is not a valid index in the ArraySegment<T>.

Applies to

Produto Versións
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Standard 2.1