Прочетете на английски Редактиране

Споделяне чрез


ValueTuple<T1,T2,T3,T4,T5,T6,T7,TRest>.Rest Field

Definition

Gets the current ValueTuple<T1,T2,T3,T4,T5,T6,T7,TRest> instance's remaining elements.

C#
public TRest Rest;

Field Value

TRest

Remarks

The Rest field returns a nested value tuple that allows access to the eighth though nth elements of the tuple. Depending on the total number of elements in the tuple, the values of the eighth through fourteenth components can be retrieved from the nested value tuple's Item1 through Item7 properties. You can then use the Rest property of a nested ValueTuple<T1,T2,T3,T4,T5,T6,T7,TRest> object to retrieve the value tuple at the next level of nesting.

Applies to

Продукт Версии
.NET Core 1.0, Core 1.1, 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, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1