ValueTuple<T1,T2,T3,T4,T5,T6,T7,TRest>.ITuple.Length ValueTuple<T1,T2,T3,T4,T5,T6,T7,TRest>.ITuple.Length ValueTuple<T1,T2,T3,T4,T5,T6,T7,TRest>.ITuple.Length Property

定义

获取 ValueTuple 中的元素数。Gets the number of elements in the ValueTuple.

property int System::Runtime::CompilerServices::ITuple::Length { int get(); };
int System.Runtime.CompilerServices.ITuple.Length { get; }
 ReadOnly Property Length As Integer Implements ITuple.Length

属性值

ValueTuple 中的元素的数量。The number of elements in the ValueTuple.

实现

注解

ValueTuple<T1,T2,T3,T4,T5,T6,T7,TRest>.ITuple.Length属性是显式接口实现。The ValueTuple<T1,T2,T3,T4,T5,T6,T7,TRest>.ITuple.Length property is an explicit interface implementation. 若要调用该ValueTuple<T1,T2,T3,T4,T5,T6,T7,TRest>对象, 必须将对象强制转换或转换ITuple为接口对象。To call it, you must cast or convert the ValueTuple<T1,T2,T3,T4,T5,T6,T7,TRest> object to an ITuple interface object.

适用于