ValueTuple<T1,T2>.ITuple.Item[Int32] 属性

定义

获取指定 ValueTuple 元素的值。Gets the value of the specified ValueTuple element.

property System::Object ^ System::Runtime::CompilerServices::ITuple::Item[int] { System::Object ^ get(int index); };
object System.Runtime.CompilerServices.ITuple.Item[int index] { get; }
 ReadOnly Property Item(index As Integer) As Object Implements ITuple.Item

参数

index
Int32

指定 ValueTuple 元素的索引。The index of the specified ValueTuple element. index 的范围可以介于 0 到 1 之间。index can range from 0 to 1.

属性值

指定位置 ValueTuple 元素的值。The value of the ValueTuple element at the specified position.

实现

异常

index 小于 0 或大于 1。index is less than 0 or greater than 1.

注解

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

适用于