ITuple.Item[Int32] Property

Definition

Returns the value of the specified Tuple element.

C#
public object? this[int index] { get; }
C#
public object this[int index] { get; }

Parameters

index
Int32

The index of the specified Tuple element. index can range from 0 for Item1 of the Tuple to one less than the number of elements in the Tuple.

Property Value

The value of the specified Tuple element.

Applies to

Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.1