TupleExtensions::Deconstruct<T1, T2, T3, T4, T5, T6, T7, T8, T9> Method (Tuple<T1, T2, T3, T4, T5, T6, T7, Tuple<T8, T9>^>^, T1%, T2%, T3%, T4%, T5%, T6%, T7%, T8%, T9%)
Deconstructs a tuple with 9 elements into separate variables.
Assembly: mscorlib (in mscorlib.dll)
public: generic<typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename T8, typename T9> [ExtensionAttribute] static void Deconstruct( Tuple<T1, T2, T3, T4, T5, T6, T7, Tuple<T8, T9>^>^ value, [OutAttribute] T1% item1, [OutAttribute] T2% item2, [OutAttribute] T3% item3, [OutAttribute] T4% item4, [OutAttribute] T5% item5, [OutAttribute] T6% item6, [OutAttribute] T7% item7, [OutAttribute] T8% item8, [OutAttribute] T9% item9 )
Parameters
- value
-
Type:
System::Tuple<T1, T2, T3, T4, T5, T6, T7, Tuple<T8, T9>^>^
The 9-element tuple to deconstruct into 9 separate variables.
- item1
-
Type:
T1%
The value of the first element.
- item2
-
Type:
T2%
The value of the second element.
- item3
-
Type:
T3%
The value of the third element.
- item4
-
Type:
T4%
The value of the fourth element.
- item5
-
Type:
T5%
The value of the fifth element.
- item6
-
Type:
T6%
The value of the sixth element.
- item7
-
Type:
T7%
The value of the seventh element.
- item8
-
Type:
T8%
The value of the eighth element, or value.Rest.Item1.
- item9
-
Type:
T9%
The value of the ninth element, or value.Rest.Item2.
Type Parameters
- T1
The type of the first element.
- T2
The type of the second element.
- T3
The type of the third element.
- T4
The type of the fourth element.
- T5
The type of the fifth element.
- T6
The type of the sixth element.
- T7
The type of the seventh element.
- T8
The type of the eighth element.
- T9
The type of the ninth element.
This method is implemented primarily to support the tuple language features in C#.
Because the .NET Framework tuple types implement tuples with more than 7 elements by nesting a tuple in Tuple<T1, T2, T3, T4, T5, T6, T7, TRest>::Rest, item8 and item9 are elements of nested tuples.
Available since 4.7