TupleExtensions.ToValueTuple Method

Definition

Converts a tuple to a value tuple.

Overloads

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.

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>>>)

Source:
TupleExtensions.cs
Source:
TupleExtensions.cs
Source:
TupleExtensions.cs

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

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

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, or value.Rest.Item1.

T9

The type of the ninth element, or value.Rest.Item2.

T10

The type of the tenth element, or value.Rest.Item3.

T11

The type of the eleventh element, or value.Rest.Item4.

T12

The type of the twelfth element, or value.Rest.Item5.

T13

The type of the thirteenth element, or value.Rest.Item6.

T14

The type of the fourteenth element, or value.Rest.Item7.

T15

The type of the fifteenth element, or value.Rest.Rest.Item1.

T16

The type of the sixteenth element, or value.Rest.Rest.Item2.

T17

The type of the seventeenth element, or value.Rest.Rest.Item3.

T18

The type of the eighteenth element, or value.Rest.Rest.Item4.

T19

The type of the nineteenth element, or value.Rest.Rest.Item5.

T20

The type of the twentieth element, or value.Rest.Rest.Item6.

T21

The type of the twenty-first element, or value.Rest.Rest.Item7.

Parameters

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

The tuple object to convert to a value tuple.

Returns

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

The converted value tuple instance.

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

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>>>)

Source:
TupleExtensions.cs
Source:
TupleExtensions.cs
Source:
TupleExtensions.cs

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

C#
public static(T1, T2, T3, T4, T5, T6, T7,(T8, T9, T10, T11, T12, T13, T14,(T15, T16, T17, T18, T19, T20))) ToValueTuple<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20>(this Tuple<T1,T2,T3,T4,T5,T6,T7,Tuple<T8,T9,T10,T11,T12,T13,T14,Tuple<T15,T16,T17,T18,T19,T20>>> value);

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, or value.Rest.Item1.

T9

The type of the ninth element, or value.Rest.Item2.

T10

The type of the tenth element, or value.Rest.Item3.

T11

The type of the eleventh element, or value.Rest.Item4.

T12

The type of the twelfth element, or value.Rest.Item5.

T13

The type of the thirteenth element, or value.Rest.Item6.

T14

The type of the fourteenth element, or value.Rest.Item7.

T15

The type of the fifteenth element, or value.Rest.Rest.Item1.

T16

The type of the sixteenth element, or value.Rest.Rest.Item2.

T17

The type of the seventeenth element, or value.Rest.Rest.Item3.

T18

The type of the eighteenth element, or value.Rest.Rest.Item4.

T19

The type of the nineteenth element, or value.Rest.Rest.Item5.

T20

The type of the twentieth element, or value.Rest.Rest.Item6.

Parameters

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

The tuple object to convert to a value tuple.

Returns

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

The converted value tuple instance.

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

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>>>)

Source:
TupleExtensions.cs
Source:
TupleExtensions.cs
Source:
TupleExtensions.cs

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

C#
public static(T1, T2, T3, T4, T5, T6, T7,(T8, T9, T10, T11, T12, T13, T14,(T15, T16, T17, T18, T19))) ToValueTuple<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19>(this Tuple<T1,T2,T3,T4,T5,T6,T7,Tuple<T8,T9,T10,T11,T12,T13,T14,Tuple<T15,T16,T17,T18,T19>>> value);

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, or value.Rest.Item1.

T9

The type of the ninth element, or value.Rest.Item2.

T10

The type of the tenth element, or value.Rest.Item3.

T11

The type of the eleventh element, or value.Rest.Item4.

T12

The type of the twelfth element, or value.Rest.Item5.

T13

The type of the thirteenth element, or value.Rest.Item6.

T14

The type of the fourteenth element, or value.Rest.Item7.

T15

The type of the fifteenth element, or value.Rest.Rest.Item1.

T16

The type of the sixteenth element, or value.Rest.Rest.Item2.

T17

The type of the seventeenth element, or value.Rest.Rest.Item3.

T18

The type of the eighteenth element, or value.Rest.Rest.Item4.

T19

The type of the nineteenth element, or value.Rest.Rest.Item5.

Parameters

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

The tuple object to convert to a value tuple.

Returns

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

The converted value tuple instance.

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

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>>>)

Source:
TupleExtensions.cs
Source:
TupleExtensions.cs
Source:
TupleExtensions.cs

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

C#
public static(T1, T2, T3, T4, T5, T6, T7,(T8, T9, T10, T11, T12, T13, T14,(T15, T16, T17, T18))) ToValueTuple<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18>(this Tuple<T1,T2,T3,T4,T5,T6,T7,Tuple<T8,T9,T10,T11,T12,T13,T14,Tuple<T15,T16,T17,T18>>> value);

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, or value.Rest.Item1.

T9

The type of the ninth element, or value.Rest.Item2.

T10

The type of the tenth element, or value.Rest.Item3.

T11

The type of the eleventh element, or value.Rest.Item4.

T12

The type of the twelfth element, or value.Rest.Item5.

T13

The type of the thirteenth element, or value.Rest.Item6.

T14

The type of the fourteenth element, or value.Rest.Item7.

T15

The type of the fifteenth element, or value.Rest.Rest.Item1.

T16

The type of the sixteenth element, or value.Rest.Rest.Item2.

T17

The type of the seventeenth element, or value.Rest.Rest.Item3.

T18

The type of the eighteenth element, or value.Rest.Rest.Item4.

Parameters

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

The tuple object to convert to a value tuple.

Returns

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

The converted value tuple instance.

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

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>>>)

Source:
TupleExtensions.cs
Source:
TupleExtensions.cs
Source:
TupleExtensions.cs

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

C#
public static(T1, T2, T3, T4, T5, T6, T7,(T8, T9, T10, T11, T12, T13, T14,(T15, T16, T17))) ToValueTuple<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17>(this Tuple<T1,T2,T3,T4,T5,T6,T7,Tuple<T8,T9,T10,T11,T12,T13,T14,Tuple<T15,T16,T17>>> value);

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, or value.Rest.Item1.

T9

The type of the ninth element, or value.Rest.Item2.

T10

The type of the tenth element, or value.Rest.Item3.

T11

The type of the eleventh element, or value.Rest.Item4.

T12

The type of the twelfth element, or value.Rest.Item5.

T13

The type of the thirteenth element, or value.Rest.Item6.

T14

The type of the fourteenth element, or value.Rest.Item7.

T15

The type of the fifteenth element, or value.Rest.Rest.Item1.

T16

The type of the sixteenth element, or value.Rest.Rest.Item2.

T17

The type of the seventeenth element, or value.Rest.Rest.Item3.

Parameters

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

The tuple object to convert to a value tuple.

Returns

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

The converted value tuple instance.

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

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>>>)

Source:
TupleExtensions.cs
Source:
TupleExtensions.cs
Source:
TupleExtensions.cs

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

C#
public static(T1, T2, T3, T4, T5, T6, T7,(T8, T9, T10, T11, T12, T13, T14,(T15, T16))) ToValueTuple<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16>(this Tuple<T1,T2,T3,T4,T5,T6,T7,Tuple<T8,T9,T10,T11,T12,T13,T14,Tuple<T15,T16>>> value);

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, or value.Rest.Item1.

T9

The type of the ninth element, or value.Rest.Item2.

T10

The type of the tenth element, or value.Rest.Item3.

T11

The type of the eleventh element, or value.Rest.Item4.

T12

The type of the twelfth element, or value.Rest.Item5.

T13

The type of the thirteenth element, or value.Rest.Item6.

T14

The type of the fourteenth element, or value.Rest.Item7.

T15

The type of the fifteenth element, or value.Rest.Rest.Item1.

T16

The type of the sixteenth element, or value.Rest.Rest.Item2.

Parameters

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

The tuple object to convert to a value tuple.

Returns

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

The converted value tuple instance.

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

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>>>)

Source:
TupleExtensions.cs
Source:
TupleExtensions.cs
Source:
TupleExtensions.cs

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

C#
public static(T1, T2, T3, T4, T5, T6, T7,(T8, T9, T10, T11, T12, T13, T14,(T15))) ToValueTuple<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15>(this Tuple<T1,T2,T3,T4,T5,T6,T7,Tuple<T8,T9,T10,T11,T12,T13,T14,Tuple<T15>>> value);

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, or value.Rest.Item1.

T9

The type of the ninth element, or value.Rest.Item2.

T10

The type of the tenth element, or value.Rest.Item3.

T11

The type of the eleventh element, or value.Rest.Item4.

T12

The type of the twelfth element, or value.Rest.Item5.

T13

The type of the thirteenth element, or value.Rest.Item6.

T14

The type of the fourteenth element, or value.Rest.Item7.

T15

The type of the fifteenth element, or value.Rest.Rest.Item1.

Parameters

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

The tuple object to convert to a value tuple.

Returns

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

The converted value tuple instance.

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

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>>)

Source:
TupleExtensions.cs
Source:
TupleExtensions.cs
Source:
TupleExtensions.cs

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

C#
public static(T1, T2, T3, T4, T5, T6, T7,(T8, T9, T10, T11, T12, T13, T14)) ToValueTuple<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14>(this Tuple<T1,T2,T3,T4,T5,T6,T7,Tuple<T8,T9,T10,T11,T12,T13,T14>> value);

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, or value.Rest.Item1.

T9

The type of the ninth element, or value.Rest.Item2.

T10

The type of the tenth element, or value.Rest.Item3.

T11

The type of the eleventh element, or value.Rest.Item4.

T12

The type of the twelfth element, or value.Rest.Item5.

T13

The type of the thirteenth element, or value.Rest.Item6.

T14

The type of the fourteenth element, or value.Rest.Item7.

Parameters

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

The tuple object to convert to a value tuple.

Returns

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

The converted value tuple instance.

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

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>>)

Source:
TupleExtensions.cs
Source:
TupleExtensions.cs
Source:
TupleExtensions.cs

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

C#
public static(T1, T2, T3, T4, T5, T6, T7,(T8, T9, T10, T11, T12, T13)) ToValueTuple<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13>(this Tuple<T1,T2,T3,T4,T5,T6,T7,Tuple<T8,T9,T10,T11,T12,T13>> value);

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, or value.Rest.Item1.

T9

The type of the ninth element, or value.Rest.Item2.

T10

The type of the tenth element, or value.Rest.Item3.

T11

The type of the eleventh element, or value.Rest.Item4.

T12

The type of the twelfth element, or value.Rest.Item5.

T13

The type of the thirteenth element, or value.Rest.Item6.

Parameters

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

The tuple object to convert to a value tuple.

Returns

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

The converted value tuple instance.

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

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>>)

Source:
TupleExtensions.cs
Source:
TupleExtensions.cs
Source:
TupleExtensions.cs

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

C#
public static(T1, T2, T3, T4, T5, T6, T7,(T8, T9, T10, T11, T12)) ToValueTuple<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12>(this Tuple<T1,T2,T3,T4,T5,T6,T7,Tuple<T8,T9,T10,T11,T12>> value);

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, or value.Rest.Item1.

T9

The type of the ninth element, or value.Rest.Item2.

T10

The type of the tenth element, or value.Rest.Item3.

T11

The type of the eleventh element, or value.Rest.Item4.

T12

The type of the twelfth element, or value.Rest.Item5.

Parameters

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

The tuple object to convert to a value tuple.

Returns

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

The converted value tuple instance.

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

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>>)

Source:
TupleExtensions.cs
Source:
TupleExtensions.cs
Source:
TupleExtensions.cs

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

C#
public static(T1, T2, T3, T4, T5, T6, T7,(T8, T9, T10, T11)) ToValueTuple<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11>(this Tuple<T1,T2,T3,T4,T5,T6,T7,Tuple<T8,T9,T10,T11>> value);

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, or value.Rest.Item1.

T9

The type of the ninth element, or value.Rest.Item2.

T10

The type of the tenth element, or value.Rest.Item3.

T11

The type of the eleventh element, or value.Rest.Item4.

Parameters

value
Tuple<T1,T2,T3,T4,T5,T6,T7,Tuple<T8,T9,T10,T11>>

The tuple object to convert to a value tuple.

Returns

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

The converted value tuple instance.

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

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

Source:
TupleExtensions.cs
Source:
TupleExtensions.cs
Source:
TupleExtensions.cs

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

C#
public static(T1, T2, T3, T4, T5, T6, T7,(T8, T9, T10)) ToValueTuple<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10>(this Tuple<T1,T2,T3,T4,T5,T6,T7,Tuple<T8,T9,T10>> value);

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, or value.Rest.Item1.

T9

The type of the ninth element, or value.Rest.Item2.

T10

The type of the tenth element, or value.Rest.Item3.

Parameters

value
Tuple<T1,T2,T3,T4,T5,T6,T7,Tuple<T8,T9,T10>>

The tuple object to convert to a value tuple.

Returns

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

The converted value tuple instance.

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

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

Source:
TupleExtensions.cs
Source:
TupleExtensions.cs
Source:
TupleExtensions.cs

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

C#
public static(T1, T2, T3, T4, T5, T6, T7,(T8, T9)) ToValueTuple<T1,T2,T3,T4,T5,T6,T7,T8,T9>(this Tuple<T1,T2,T3,T4,T5,T6,T7,Tuple<T8,T9>> value);

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, or value.Rest.Item1.

T9

The type of the ninth element, or value.Rest.Item2.

Parameters

value
Tuple<T1,T2,T3,T4,T5,T6,T7,Tuple<T8,T9>>

The tuple object to convert to a value tuple.

Returns

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

The converted value tuple instance.

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

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

Source:
TupleExtensions.cs
Source:
TupleExtensions.cs
Source:
TupleExtensions.cs

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

C#
public static(T1, T2, T3, T4, T5, T6, T7,(T8)) ToValueTuple<T1,T2,T3,T4,T5,T6,T7,T8>(this Tuple<T1,T2,T3,T4,T5,T6,T7,Tuple<T8>> value);

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, or value.Rest.Item1.

Parameters

value
Tuple<T1,T2,T3,T4,T5,T6,T7,Tuple<T8>>

The tuple object to convert to a value tuple.

Returns

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

The converted value tuple instance.

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

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

Source:
TupleExtensions.cs
Source:
TupleExtensions.cs
Source:
TupleExtensions.cs

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

C#
public static(T1, T2, T3, T4, T5, T6, T7) ToValueTuple<T1,T2,T3,T4,T5,T6,T7>(this Tuple<T1,T2,T3,T4,T5,T6,T7> value);

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.

Parameters

value
Tuple<T1,T2,T3,T4,T5,T6,T7>

The tuple object to convert to a value tuple.

Returns

The converted value tuple instance.

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

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

Source:
TupleExtensions.cs
Source:
TupleExtensions.cs
Source:
TupleExtensions.cs

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

C#
public static(T1, T2, T3, T4, T5, T6) ToValueTuple<T1,T2,T3,T4,T5,T6>(this Tuple<T1,T2,T3,T4,T5,T6> value);

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.

Parameters

value
Tuple<T1,T2,T3,T4,T5,T6>

The tuple object to convert to a value tuple.

Returns

The converted value tuple instance.

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

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

Source:
TupleExtensions.cs
Source:
TupleExtensions.cs
Source:
TupleExtensions.cs

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

C#
public static(T1, T2, T3, T4, T5) ToValueTuple<T1,T2,T3,T4,T5>(this Tuple<T1,T2,T3,T4,T5> value);

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.

Parameters

value
Tuple<T1,T2,T3,T4,T5>

The tuple object to convert to a value tuple.

Returns

The converted value tuple instance.

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

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

Source:
TupleExtensions.cs
Source:
TupleExtensions.cs
Source:
TupleExtensions.cs

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

C#
public static(T1, T2, T3, T4) ToValueTuple<T1,T2,T3,T4>(this Tuple<T1,T2,T3,T4> value);

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.

Parameters

value
Tuple<T1,T2,T3,T4>

The tuple object to convert to a value tuple.

Returns

The converted value tuple instance.

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

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

Source:
TupleExtensions.cs
Source:
TupleExtensions.cs
Source:
TupleExtensions.cs

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

C#
public static(T1, T2, T3) ToValueTuple<T1,T2,T3>(this Tuple<T1,T2,T3> value);

Type Parameters

T1

The type of the first element.

T2

The type of the second element.

T3

The type of the third element.

Parameters

value
Tuple<T1,T2,T3>

The tuple object to convert to a value tuple.

Returns

The converted value tuple instance.

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

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

Source:
TupleExtensions.cs
Source:
TupleExtensions.cs
Source:
TupleExtensions.cs

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

C#
public static(T1, T2) ToValueTuple<T1,T2>(this Tuple<T1,T2> value);

Type Parameters

T1

The type of the first element.

T2

The type of the second element.

Parameters

value
Tuple<T1,T2>

The tuple object to convert to a value tuple.

Returns

The converted value tuple instance.

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

ToValueTuple<T1>(Tuple<T1>)

Source:
TupleExtensions.cs
Source:
TupleExtensions.cs
Source:
TupleExtensions.cs

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

C#
public static(T1) ToValueTuple<T1>(this Tuple<T1> value);

Type Parameters

T1

The type of the first element.

Parameters

value
Tuple<T1>

The tuple object to convert to a value tuple.

Returns

The converted value tuple instance.

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1