Bewerken

Delen via


ValueTuple<T1,T2,T3,T4,T5,T6,T7,TRest> Constructor

Definition

Initializes a new ValueTuple<T1,T2,T3,T4,T5,T6,T7,TRest> instance.

public:
 ValueTuple(T1 item1, T2 item2, T3 item3, T4 item4, T5 item5, T6 item6, T7 item7, TRest rest);
public ValueTuple (T1 item1, T2 item2, T3 item3, T4 item4, T5 item5, T6 item6, T7 item7, TRest rest);
new ValueTuple<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'Rest (requires 'Rest : struct)> : 'T1 * 'T2 * 'T3 * 'T4 * 'T5 * 'T6 * 'T7 * 'Rest -> ValueTuple<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'Rest (requires 'Rest : struct)>
Public Sub New (item1 As T1, item2 As T2, item3 As T3, item4 As T4, item5 As T5, item6 As T6, item7 As T7, rest As TRest)

Parameters

item1
T1

The value tuple's first element.

item2
T2

The value tuple's second element.

item3
T3

The value tuple's third element.

item4
T4

The value tuple's fourth element.

item5
T5

The value tuple's fifth element.

item6
T6

The value tuple's sixth element.

item7
T7

The value tuple's seventh element.

rest
TRest

An instance of any value tuple type that contains the values of the value's tuple's remaining elements.

Exceptions

rest is not a generic value tuple type.

Remarks

In addition to using your language's build-in support for tuples, you can also create a value tuple by calling the static ValueTuple.Create<T1,T2,T3,T4,T5,T6,T7,T8>(T1, T2, T3, T4, T5, T6, T7, T8) method without having to explicitly specify the types of its elements.

Applies to

See also