ValueTuple::Create<T1, T2, T3, T4, T5, T6, T7, T8> Method (T1, T2, T3, T4, T5, T6, T7, T8)
Creates a new value tuple with 8 components (an octuple).
Assembly: mscorlib (in mscorlib.dll)
public: generic<typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename T8> static ValueTuple<T1, T2, T3, T4, T5, T6, T7, ValueTuple<T8>> Create( T1 item1, T2 item2, T3 item3, T4 item4, T5 item5, T6 item6, T7 item7, T8 item8 )
Parameters
- item1
-
Type:
T1
The value of the value tuple's first component.
- item2
-
Type:
T2
The value of the value tuple's second component.
- item3
-
Type:
T3
The value of the value tuple's third component.
- item4
-
Type:
T4
The value of the value tuple's fourth component.
- item5
-
Type:
T5
The value of the value tuple's fifth component.
- item6
-
Type:
T6
The value of the value tuple's sixth component.
- item7
-
Type:
T7
The value of the value tuple's seventh component.
- item8
-
Type:
T8
The value of the value tuple's eighth component.
Return Value
Type: System::ValueTuple<T1, T2, T3, T4, T5, T6, T7, ValueTuple<T8>>A value tuple with 8 components.
Type Parameters
- T1
The type of the value tuple's first component.
- T2
The type of the value tuple's second component.
- T3
The type of the value tuple's third component.
- T4
The type of the value tuple's fourth component.
- T5
The type of the value tuple's fifth component.
- T6
The type of the value tuple's sixth component.
- T7
The type of the value tuple's seventh component.
- T8
The type of the value tuple's eighth component.
Create<T1, T2, T3, T4, T5, T6, T7, T8> is a helper method that you can call to instantiate an 8-component value tuple without having to explicitly specify the types of its components.
Note |
|---|
You must call the ValueTuple<T1, T2, T3, T4, T5, T6, T7, TRest> constructor to create a tuple with nine or more components unless your language provides a special syntax for this purpose. The static methods of the ValueTuple structure cannot be used to create a tuple with nine or more components. |
Available since 4.7
