TupleExtensions Class

Definition

Provides extension methods for tuples to interoperate with language support for tuples in C#.

public ref class TupleExtensions abstract sealed
public static class TupleExtensions
type TupleExtensions = class
Public Module TupleExtensions
Inheritance
TupleExtensions

Remarks

Although these methods can be called directly, they are primarily intended for use by the C# compiler in creating and deconstructing tuples.

Methods

Deconstruct<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15, T16,T17,T18,T19,T20,T21>(Tuple<T1,T2,T3,T4,T5,T6,T7,Tuple<T8, T9,T10,T11,T12,T13,T14,Tuple<T15,T16,T17,T18,T19,T20,T21>>>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21)

Deconstructs a tuple with 21 elements into separate variables.

Deconstruct<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15, T16,T17,T18,T19,T20>(Tuple<T1,T2,T3,T4,T5,T6,T7,Tuple<T8,T9,T10, T11,T12,T13,T14,Tuple<T15,T16,T17,T18,T19,T20>>>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20)

Deconstructs a tuple with 20 elements into separate variables.

Deconstruct<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15, T16,T17,T18,T19>(Tuple<T1,T2,T3,T4,T5,T6,T7,Tuple<T8,T9,T10,T11, T12,T13,T14,Tuple<T15,T16,T17,T18,T19>>>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19)

Deconstructs a tuple with 19 elements into separate variables.

Deconstruct<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15, T16,T17,T18>(Tuple<T1,T2,T3,T4,T5,T6,T7,Tuple<T8,T9,T10,T11,T12, T13,T14,Tuple<T15,T16,T17,T18>>>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18)

Deconstructs a tuple with 18 elements into separate variables.

Deconstruct<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15, T16,T17>(Tuple<T1,T2,T3,T4,T5,T6,T7,Tuple<T8,T9,T10,T11,T12,T13, T14,Tuple<T15,T16,T17>>>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17)

Deconstructs a tuple with 17 elements into separate variables.

Deconstruct<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15, T16>(Tuple<T1,T2,T3,T4,T5,T6,T7,Tuple<T8,T9,T10,T11,T12,T13,T14, Tuple<T15,T16>>>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16)

Deconstructs a tuple with 16 elements into separate variables.

Deconstruct<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15>(Tuple<T1, T2,T3,T4,T5,T6,T7,Tuple<T8,T9,T10,T11,T12,T13,T14,Tuple<T15>>>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)

Deconstructs a tuple with 15 elements into separate variables.

Deconstruct<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14>(Tuple<T1, T2,T3,T4,T5,T6,T7,Tuple<T8,T9,T10,T11,T12,T13,T14>>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)

Deconstructs a tuple with 14 elements into separate variables.

Deconstruct<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13>(Tuple<T1, T2,T3,T4,T5,T6,T7,Tuple<T8,T9,T10,T11,T12,T13>>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)

Deconstructs a tuple with 13 elements into separate variables.

Deconstruct<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12>(Tuple<T1, T2,T3,T4,T5,T6,T7,Tuple<T8,T9,T10,T11,T12>>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)

Deconstructs a tuple with 12 elements into separate variables.

Deconstruct<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11>(Tuple<T1,T2,T3,T4,T5,T6,T7,Tuple<T8,T9,T10,T11>>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)

Deconstructs a tuple with 11 elements into separate variables.

Deconstruct<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10>(Tuple<T1,T2,T3,T4,T5,T6,T7,Tuple<T8,T9,T10>>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)

Deconstructs a tuple with 10 elements into separate variables.

Deconstruct<T1,T2,T3,T4,T5,T6,T7,T8,T9>(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.

Deconstruct<T1,T2,T3,T4,T5,T6,T7,T8>(Tuple<T1,T2,T3,T4,T5,T6,T7,Tuple<T8>>, T1, T2, T3, T4, T5, T6, T7, T8)

Deconstructs a tuple with 8 elements into separate variables.

Deconstruct<T1,T2,T3,T4,T5,T6,T7>(Tuple<T1,T2,T3,T4,T5,T6,T7>, T1, T2, T3, T4, T5, T6, T7)

Deconstructs a tuple with 7 elements into separate variables.

Deconstruct<T1,T2,T3,T4,T5,T6>(Tuple<T1,T2,T3,T4,T5,T6>, T1, T2, T3, T4, T5, T6)

Deconstructs a tuple with 6 elements into separate variables.

Deconstruct<T1,T2,T3,T4,T5>(Tuple<T1,T2,T3,T4,T5>, T1, T2, T3, T4, T5)

Deconstructs a tuple with 5 elements into separate variables.

Deconstruct<T1,T2,T3,T4>(Tuple<T1,T2,T3,T4>, T1, T2, T3, T4)

Deconstructs a tuple with 4 elements into separate variables.

Deconstruct<T1,T2,T3>(Tuple<T1,T2,T3>, T1, T2, T3)

Deconstructs a tuple with 3 elements into separate variables.

Deconstruct<T1,T2>(Tuple<T1,T2>, T1, T2)

Deconstructs a tuple with 2 elements into separate variables.

Deconstruct<T1>(Tuple<T1>, T1)

Deconstructs a tuple with 1 element into a separate variable.

ToTuple<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16, T17,T18,T19,T20,T21>(ValueTuple<T1,T2,T3,T4,T5,T6,T7,ValueTuple<T8, T9,T10,T11,T12,T13,T14,ValueTuple<T15,T16,T17,T18,T19,T20,T21>>>)

Converts an instance of the ValueTuple structure to an instance of the Tuple class.

ToTuple<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16, T17,T18,T19,T20>(ValueTuple<T1,T2,T3,T4,T5,T6,T7,ValueTuple<T8, T9,T10,T11,T12,T13,T14,ValueTuple<T15,T16,T17,T18,T19,T20>>>)

Converts an instance of the ValueTuple structure to an instance of the Tuple class.

ToTuple<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16, T17,T18,T19>(ValueTuple<T1,T2,T3,T4,T5,T6,T7,ValueTuple<T8,T9, T10,T11,T12,T13,T14,ValueTuple<T15,T16,T17,T18,T19>>>)

Converts an instance of the ValueTuple structure to an instance of the Tuple class.

ToTuple<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16, T17,T18>(ValueTuple<T1,T2,T3,T4,T5,T6,T7,ValueTuple<T8,T9,T10, T11,T12,T13,T14,ValueTuple<T15,T16,T17,T18>>>)

Converts an instance of the ValueTuple structure to an instance of the Tuple class.

ToTuple<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16, T17>(ValueTuple<T1,T2,T3,T4,T5,T6,T7,ValueTuple<T8,T9,T10,T11, T12,T13,T14,ValueTuple<T15,T16,T17>>>)

Converts an instance of the ValueTuple structure to an instance of the Tuple class.

ToTuple<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16>(ValueTuple<T1, T2,T3,T4,T5,T6,T7,ValueTuple<T8,T9,T10,T11,T12,T13,T14,ValueTuple<T15, T16>>>)

Converts an instance of the ValueTuple structure to an instance of the Tuple class.

ToTuple<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15>(ValueTuple<T1,T2,T3,T4,T5,T6,T7,ValueTuple<T8,T9,T10,T11,T12,T13,T14,ValueTuple<T15>>>)

Converts an instance of the ValueTuple structure to an instance of the Tuple class.

ToTuple<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14>(ValueTuple<T1,T2,T3,T4,T5,T6,T7,ValueTuple<T8,T9,T10,T11,T12,T13,T14>>)

Converts an instance of the ValueTuple structure to an instance of the Tuple class.

ToTuple<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13>(ValueTuple<T1,T2,T3,T4,T5,T6,T7,ValueTuple<T8,T9,T10,T11,T12,T13>>)

Converts an instance of the ValueTuple structure to an instance of the Tuple class.

ToTuple<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12>(ValueTuple<T1,T2,T3,T4,T5,T6,T7,ValueTuple<T8,T9,T10,T11,T12>>)

Converts an instance of the ValueTuple structure to an instance of the Tuple class.

ToTuple<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11>(ValueTuple<T1,T2,T3,T4,T5,T6,T7,ValueTuple<T8,T9,T10,T11>>)

Converts an instance of the ValueTuple structure to an instance of the Tuple class.

ToTuple<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10>(ValueTuple<T1,T2,T3,T4,T5,T6,T7,ValueTuple<T8,T9,T10>>)

Converts an instance of the ValueTuple structure to an instance of the Tuple class.

ToTuple<T1,T2,T3,T4,T5,T6,T7,T8,T9>(ValueTuple<T1,T2,T3,T4,T5,T6,T7,ValueTuple<T8,T9>>)

Converts an instance of the ValueTuple structure to an instance of the Tuple class.

ToTuple<T1,T2,T3,T4,T5,T6,T7,T8>(ValueTuple<T1,T2,T3,T4,T5,T6,T7,ValueTuple<T8>>)

Converts an instance of the ValueTuple structure to an instance of the Tuple class.

ToTuple<T1,T2,T3,T4,T5,T6,T7>(ValueTuple<T1,T2,T3,T4,T5,T6,T7>)

Converts an instance of the ValueTuple structure to an instance of the Tuple class.

ToTuple<T1,T2,T3,T4,T5,T6>(ValueTuple<T1,T2,T3,T4,T5,T6>)

Converts an instance of the ValueTuple structure to an instance of the Tuple class.

ToTuple<T1,T2,T3,T4,T5>(ValueTuple<T1,T2,T3,T4,T5>)

Converts an instance of the ValueTuple structure to an instance of the Tuple class.

ToTuple<T1,T2,T3,T4>(ValueTuple<T1,T2,T3,T4>)

Converts an instance of the ValueTuple structure to an instance of the Tuple class.

ToTuple<T1,T2,T3>(ValueTuple<T1,T2,T3>)

Converts an instance of the ValueTuple structure to an instance of the Tuple class.

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

Converts an instance of the ValueTuple structure to an instance of the Tuple class.

ToTuple<T1>(ValueTuple<T1>)

Converts an instance of the ValueTuple structure to an instance of the Tuple class.

ToValueTuple<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15, T16,T17,T18,T19,T20,T21>(Tuple<T1,T2,T3,T4,T5,T6,T7,Tuple<T8, T9,T10,T11,T12,T13,T14,Tuple<T15,T16,T17,T18,T19,T20,T21>>>)

Converts an instance of the Tuple class to an instance of the ValueTuple structure.

ToValueTuple<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15, T16,T17,T18,T19,T20>(Tuple<T1,T2,T3,T4,T5,T6,T7,Tuple<T8,T9,T10, T11,T12,T13,T14,Tuple<T15,T16,T17,T18,T19,T20>>>)

Converts an instance of the Tuple class to an instance of the ValueTuple structure.

ToValueTuple<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15, T16,T17,T18,T19>(Tuple<T1,T2,T3,T4,T5,T6,T7,Tuple<T8,T9,T10,T11, T12,T13,T14,Tuple<T15,T16,T17,T18,T19>>>)

Converts an instance of the Tuple class to an instance of the ValueTuple structure.

ToValueTuple<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15, T16,T17,T18>(Tuple<T1,T2,T3,T4,T5,T6,T7,Tuple<T8,T9,T10,T11,T12, T13,T14,Tuple<T15,T16,T17,T18>>>)

Converts an instance of the Tuple class to an instance of the ValueTuple structure.

ToValueTuple<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15, T16,T17>(Tuple<T1,T2,T3,T4,T5,T6,T7,Tuple<T8,T9,T10,T11,T12,T13, T14,Tuple<T15,T16,T17>>>)

Converts an instance of the Tuple class to an instance of the ValueTuple structure.

ToValueTuple<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16>(Tuple<T1,T2,T3,T4,T5,T6,T7,Tuple<T8,T9,T10,T11,T12,T13,T14,Tuple<T15,T16>>>)

Converts an instance of the Tuple class to an instance of the ValueTuple structure.

ToValueTuple<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15>(Tuple<T1,T2,T3,T4,T5,T6,T7,Tuple<T8,T9,T10,T11,T12,T13,T14,Tuple<T15>>>)

Converts an instance of the Tuple class to an instance of the ValueTuple structure.

ToValueTuple<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14>(Tuple<T1,T2,T3,T4,T5,T6,T7,Tuple<T8,T9,T10,T11,T12,T13,T14>>)

Converts an instance of the Tuple class to an instance of the ValueTuple structure.

ToValueTuple<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13>(Tuple<T1,T2,T3,T4,T5,T6,T7,Tuple<T8,T9,T10,T11,T12,T13>>)

Converts an instance of the Tuple class to an instance of the ValueTuple structure.

ToValueTuple<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12>(Tuple<T1,T2,T3,T4,T5,T6,T7,Tuple<T8,T9,T10,T11,T12>>)

Converts an instance of the Tuple class to an instance of the ValueTuple structure.

ToValueTuple<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11>(Tuple<T1,T2,T3,T4,T5,T6,T7,Tuple<T8,T9,T10,T11>>)

Converts an instance of the Tuple class to an instance of the ValueTuple structure.

ToValueTuple<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10>(Tuple<T1,T2,T3,T4,T5,T6,T7,Tuple<T8,T9,T10>>)

Converts an instance of the Tuple class to an instance of the ValueTuple structure.

ToValueTuple<T1,T2,T3,T4,T5,T6,T7,T8,T9>(Tuple<T1,T2,T3,T4,T5,T6,T7,Tuple<T8,T9>>)

Converts an instance of the Tuple class to an instance of the ValueTuple structure.

ToValueTuple<T1,T2,T3,T4,T5,T6,T7,T8>(Tuple<T1,T2,T3,T4,T5,T6,T7,Tuple<T8>>)

Converts an instance of the Tuple class to an instance of the ValueTuple structure.

ToValueTuple<T1,T2,T3,T4,T5,T6,T7>(Tuple<T1,T2,T3,T4,T5,T6,T7>)

Converts an instance of the Tuple class to an instance of the ValueTuple structure.

ToValueTuple<T1,T2,T3,T4,T5,T6>(Tuple<T1,T2,T3,T4,T5,T6>)

Converts an instance of the Tuple class to an instance of the ValueTuple structure.

ToValueTuple<T1,T2,T3,T4,T5>(Tuple<T1,T2,T3,T4,T5>)

Converts an instance of the Tuple class to an instance of the ValueTuple structure.

ToValueTuple<T1,T2,T3,T4>(Tuple<T1,T2,T3,T4>)

Converts an instance of the Tuple class to an instance of the ValueTuple structure.

ToValueTuple<T1,T2,T3>(Tuple<T1,T2,T3>)

Converts an instance of the Tuple class to an instance of the ValueTuple structure.

ToValueTuple<T1,T2>(Tuple<T1,T2>)

Converts an instance of the Tuple class to an instance of the ValueTuple structure.

ToValueTuple<T1>(Tuple<T1>)

Converts an instance of the Tuple class to an instance of the ValueTuple structure.

Applies to