ValueTuple<T1,T2>(T1, T2) ValueTuple<T1,T2>(T1, T2) ValueTuple<T1,T2>(T1, T2) ValueTuple<T1,T2>(T1, T2) Constructor

定义

初始化一个新 ValueTuple<T1,T2> 实例。Initializes a new ValueTuple<T1,T2> instance.

public:
 ValueTuple(T1 item1, T2 item2);
public ValueTuple (T1 item1, T2 item2);
new ValueTuple<'T1, 'T2> : 'T1 * 'T2 -> ValueTuple<'T1, 'T2>
Public Sub New (item1 As T1, item2 As T2)

参数

item1
T1 T1 T1 T1

值元组的第 1 个元素。The value tuple's first element.

item2
T2 T2 T2 T2

值元组的第 2 个元素。The value tuple's second element.

适用于