TupleExtensions::Deconstruct<T1, T2> Method (Tuple<T1, T2>^, T1%, T2%)
Deconstructs a tuple with 2 elements into separate variables.
Assembly: mscorlib (in mscorlib.dll)
public: generic<typename T1, typename T2> [ExtensionAttribute] static void Deconstruct( Tuple<T1, T2>^ value, [OutAttribute] T1% item1, [OutAttribute] T2% item2 )
Parameters
- value
-
Type:
System::Tuple<T1, T2>^
The 2-element tuple to deconstruct into 2 separate variables.
- item1
-
Type:
T1%
The value of the first element.
- item2
-
Type:
T2%
The value of the second element.
Type Parameters
- T1
The type of the first element.
- T2
The type of the second element.
This method is implemented primarily to support the tuple language features in C#.
.NET Framework
Available since 4.7
Available since 4.7
Show: