Tuple<T1,T2>.ITuple.Length Property

Definition

Gets the number of elements in the Tuple.

C#
int System.Runtime.CompilerServices.ITuple.Length { get; }

Property Value

2, the number of elements in a Tuple<T1,T2> object.

Implements

Remarks

The ITuple.Length property is an explicit interface implementation. To call it, you must cast or convert the Tuple<T1,T2> object to an ITuple interface object.

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