Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class System.​TupleExtensions
Assembly: System.Runtime
Inheritance: object → TupleExtensions
Provides extension methods for tuples to interoperate with language support for tuples in C#.
Methods
public static
void
Deconstruct​(Tuple<​T1, T2, T3, T4, T5, T6, T7, Tuple<​T8, T9, T10>> value,
T1& item1,
T2& item2,
T3& item3,
T4& item4,
T5& item5,
T6& item6,
T7& item7,
T8& item8,
T9& item9,
T10& item10)
public static
void
Deconstruct​(Tuple<​T1, T2, T3, T4, T5, T6, T7, Tuple<​T8, T9, T10, T11>> value,
T1& item1,
T2& item2,
T3& item3,
T4& item4,
T5& item5,
T6& item6,
T7& item7,
T8& item8,
T9& item9,
T10& item10,
T11& item11)
public static
void
Deconstruct​(Tuple<​T1, T2, T3, T4, T5, T6, T7, Tuple<​T8, T9, T10, T11, T12>> value,
T1& item1,
T2& item2,
T3& item3,
T4& item4,
T5& item5,
T6& item6,
T7& item7,
T8& item8,
T9& item9,
T10& item10,
T11& item11,
T12& item12)
public static
void
Deconstruct​(Tuple<​T1, T2, T3, T4, T5, T6, T7, Tuple<​T8, T9, T10, T11, T12, T13>> value,
T1& item1,
T2& item2,
T3& item3,
T4& item4,
T5& item5,
T6& item6,
T7& item7,
T8& item8,
T9& item9,
T10& item10,
T11& item11,
T12& item12,
T13& item13)
public static
void
Deconstruct​(Tuple<​T1, T2, T3, T4, T5, T6, T7, Tuple<​T8, T9, T10, T11, T12, T13, T14>> value,
T1& item1,
T2& item2,
T3& item3,
T4& item4,
T5& item5,
T6& item6,
T7& item7,
T8& item8,
T9& item9,
T10& item10,
T11& item11,
T12& item12,
T13& item13,
T14& item14)
public static
void
Deconstruct​(Tuple<​T1, T2, T3, T4, T5, T6, T7, Tuple<​T8, T9, T10, T11, T12, T13, T14, Tuple<​T15>>> value,
T1& item1,
T2& item2,
T3& item3,
T4& item4,
T5& item5,
T6& item6,
T7& item7,
T8& item8,
T9& item9,
T10& item10,
T11& item11,
T12& item12,
T13& item13,
T14& item14,
T15& item15)
public static
void
Deconstruct​(Tuple<​T1, T2, T3, T4, T5, T6, T7, Tuple<​T8, T9, T10, T11, T12, T13, T14, Tuple<​T15, T16>>> value,
T1& item1,
T2& item2,
T3& item3,
T4& item4,
T5& item5,
T6& item6,
T7& item7,
T8& item8,
T9& item9,
T10& item10,
T11& item11,
T12& item12,
T13& item13,
T14& item14,
T15& item15,
T16& item16)
public static
void
Deconstruct​(Tuple<​T1, T2, T3, T4, T5, T6, T7, Tuple<​T8, T9, T10, T11, T12, T13, T14, Tuple<​T15, T16, T17>>> value,
T1& item1,
T2& item2,
T3& item3,
T4& item4,
T5& item5,
T6& item6,
T7& item7,
T8& item8,
T9& item9,
T10& item10,
T11& item11,
T12& item12,
T13& item13,
T14& item14,
T15& item15,
T16& item16,
T17& item17)
public static
void
Deconstruct​(Tuple<​T1, T2, T3, T4, T5, T6, T7, Tuple<​T8, T9, T10, T11, T12, T13, T14, Tuple<​T15, T16, T17, T18>>> value,
T1& item1,
T2& item2,
T3& item3,
T4& item4,
T5& item5,
T6& item6,
T7& item7,
T8& item8,
T9& item9,
T10& item10,
T11& item11,
T12& item12,
T13& item13,
T14& item14,
T15& item15,
T16& item16,
T17& item17,
T18& item18)
public static
void
Deconstruct​(Tuple<​T1, T2, T3, T4, T5, T6, T7, Tuple<​T8, T9, T10, T11, T12, T13, T14, Tuple<​T15, T16, T17, T18, T19>>> value,
T1& item1,
T2& item2,
T3& item3,
T4& item4,
T5& item5,
T6& item6,
T7& item7,
T8& item8,
T9& item9,
T10& item10,
T11& item11,
T12& item12,
T13& item13,
T14& item14,
T15& item15,
T16& item16,
T17& item17,
T18& item18,
T19& item19)
public static
void
Deconstruct​(Tuple<​T1, T2> value,
T1& item1,
T2& item2)
public static
void
Deconstruct​(Tuple<​T1, T2, T3, T4, T5, T6, T7, Tuple<​T8, T9, T10, T11, T12, T13, T14, Tuple<​T15, T16, T17, T18, T19, T20>>> value,
T1& item1,
T2& item2,
T3& item3,
T4& item4,
T5& item5,
T6& item6,
T7& item7,
T8& item8,
T9& item9,
T10& item10,
T11& item11,
T12& item12,
T13& item13,
T14& item14,
T15& item15,
T16& item16,
T17& item17,
T18& item18,
T19& item19,
T20& item20)
public static
void
Deconstruct​(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,
T1& item1,
T2& item2,
T3& item3,
T4& item4,
T5& item5,
T6& item6,
T7& item7,
T8& item8,
T9& item9,
T10& item10,
T11& item11,
T12& item12,
T13& item13,
T14& item14,
T15& item15,
T16& item16,
T17& item17,
T18& item18,
T19& item19,
T20& item20,
T21& item21)
public static
void
Deconstruct​(Tuple<​T1, T2, T3> value,
T1& item1,
T2& item2,
T3& item3)
public static
void
Deconstruct​(Tuple<​T1, T2, T3, T4> value,
T1& item1,
T2& item2,
T3& item3,
T4& item4)
public static
void
Deconstruct​(Tuple<​T1, T2, T3, T4, T5> value,
T1& item1,
T2& item2,
T3& item3,
T4& item4,
T5& item5)
public static
void
Deconstruct​(Tuple<​T1, T2, T3, T4, T5, T6> value,
T1& item1,
T2& item2,
T3& item3,
T4& item4,
T5& item5,
T6& item6)
public static
void
Deconstruct​(Tuple<​T1, T2, T3, T4, T5, T6, T7> value,
T1& item1,
T2& item2,
T3& item3,
T4& item4,
T5& item5,
T6& item6,
T7& item7)
public static
void
Deconstruct​(Tuple<​T1, T2, T3, T4, T5, T6, T7, Tuple<​T8>> value,
T1& item1,
T2& item2,
T3& item3,
T4& item4,
T5& item5,
T6& item6,
T7& item7,
T8& item8)
public static
void
Deconstruct​(Tuple<​T1, T2, T3, T4, T5, T6, T7, Tuple<​T8, T9>> value,
T1& item1,
T2& item2,
T3& item3,
T4& item4,
T5& item5,
T6& item6,
T7& item7,
T8& item8,
T9& item9)
public static
Tuple<​T1>
ToTuple​(ValueTuple<​T1> value)
Converts an instance of the <see langword="ValueTuple" /> structure to an instance of the <see langword="Tuple" /> class.
Returns The converted tuple.
value
The value tuple instance to convert to a tuple.
ToTuple​(ValueTuple<​T1, T2, T3, T4, T5, T6, T7, ValueTuple<​T8, T9, T10>> value)
Converts an instance of the <see langword="ValueTuple" /> structure to an instance of the <see langword="Tuple" /> class.
Returns The converted tuple.
value
The value tuple instance to convert to a tuple.
public static
Tuple<​T1, T2, T3, T4, T5, T6, T7, Tuple<​T8, T9, T10, T11>>
ToTuple​(ValueTuple<​T1, T2, T3, T4, T5, T6, T7, ValueTuple<​T8, T9, T10, T11>> value)
Converts an instance of the <see langword="ValueTuple" /> structure to an instance of the <see langword="Tuple" /> class.
Returns The converted tuple.
value
The value tuple instance to convert to a tuple.
public static
Tuple<​T1, T2, T3, T4, T5, T6, T7, Tuple<​T8, T9, T10, T11, T12>>
ToTuple​(ValueTuple<​T1, T2, T3, T4, T5, T6, T7, ValueTuple<​T8, T9, T10, T11, T12>> value)
Converts an instance of the <see langword="ValueTuple" /> structure to an instance of the <see langword="Tuple" /> class.
Returns The converted tuple.
value
The value tuple instance to convert to a tuple.
public static
Tuple<​T1, T2, T3, T4, T5, T6, T7, Tuple<​T8, T9, T10, T11, T12, T13>>
ToTuple​(ValueTuple<​T1, T2, T3, T4, T5, T6, T7, ValueTuple<​T8, T9, T10, T11, T12, T13>> value)
Converts an instance of the <see langword="ValueTuple" /> structure to an instance of the <see langword="Tuple" /> class.
Returns The converted tuple.
value
The value tuple instance to convert to a tuple.
public static
Tuple<​T1, T2, T3, T4, T5, T6, T7, Tuple<​T8, T9, T10, T11, T12, T13, T14>>
ToTuple​(ValueTuple<​T1, T2, T3, T4, T5, T6, T7, ValueTuple<​T8, T9, T10, T11, T12, T13, T14>> value)
Converts an instance of the <see langword="ValueTuple" /> structure to an instance of the <see langword="Tuple" /> class.
Returns The converted tuple.
value
The value tuple instance to convert to a tuple.
public static
Tuple<​T1, T2, T3, T4, T5, T6, T7, Tuple<​T8, T9, T10, T11, T12, T13, T14, Tuple<​T15>>>
ToTuple​(ValueTuple<​T1, T2, T3, T4, T5, T6, T7, ValueTuple<​T8, T9, T10, T11, T12, T13, T14, ValueTuple<​T15>>> value)
Converts an instance of the <see langword="ValueTuple" /> structure to an instance of the <see langword="Tuple" /> class.
Returns The converted tuple.
value
The value tuple instance to convert to a tuple.
public static
Tuple<​T1, T2, T3, T4, T5, T6, T7, Tuple<​T8, T9, T10, T11, T12, T13, T14, Tuple<​T15, T16>>>
ToTuple​(ValueTuple<​T1, T2, T3, T4, T5, T6, T7, ValueTuple<​T8, T9, T10, T11, T12, T13, T14, ValueTuple<​T15, T16>>> value)
Converts an instance of the <see langword="ValueTuple" /> structure to an instance of the <see langword="Tuple" /> class.
Returns The converted tuple.
value
The value tuple instance to convert to a tuple.
public static
Tuple<​T1, T2, T3, T4, T5, T6, T7, Tuple<​T8, T9, T10, T11, T12, T13, T14, Tuple<​T15, T16, T17>>>
ToTuple​(ValueTuple<​T1, T2, T3, T4, T5, T6, T7, ValueTuple<​T8, T9, T10, T11, T12, T13, T14, ValueTuple<​T15, T16, T17>>> value)
Converts an instance of the <see langword="ValueTuple" /> structure to an instance of the <see langword="Tuple" /> class.
Returns The converted tuple.
value
The value tuple instance to convert to a tuple.
public static
Tuple<​T1, T2, T3, T4, T5, T6, T7, Tuple<​T8, T9, T10, T11, T12, T13, T14, Tuple<​T15, T16, T17, T18>>>
ToTuple​(ValueTuple<​T1, T2, T3, T4, T5, T6, T7, ValueTuple<​T8, T9, T10, T11, T12, T13, T14, ValueTuple<​T15, T16, T17, T18>>> value)
Converts an instance of the <see langword="ValueTuple" /> structure to an instance of the <see langword="Tuple" /> class.
Returns The converted tuple.
value
The value tuple instance to convert to a tuple.
public static
Tuple<​T1, T2, T3, T4, T5, T6, T7, Tuple<​T8, T9, T10, T11, T12, T13, T14, Tuple<​T15, T16, T17, T18, T19>>>
ToTuple​(ValueTuple<​T1, T2, T3, T4, T5, T6, T7, ValueTuple<​T8, T9, T10, T11, T12, T13, T14, ValueTuple<​T15, T16, T17, T18, T19>>> value)
Converts an instance of the <see langword="ValueTuple" /> structure to an instance of the <see langword="Tuple" /> class.
Returns The converted tuple.
value
The value tuple instance to convert to a tuple.
public static
Tuple<​T1, T2>
ToTuple​(ValueTuple<​T1, T2> value)
Converts an instance of the <see langword="ValueTuple" /> structure to an instance of the <see langword="Tuple" /> class.
Returns The converted tuple.
value
The value tuple instance to convert to a tuple.
public static
Tuple<​T1, T2, T3, T4, T5, T6, T7, Tuple<​T8, T9, T10, T11, T12, T13, T14, Tuple<​T15, T16, T17, T18, T19, T20>>>
ToTuple​(ValueTuple<​T1, T2, T3, T4, T5, T6, T7, ValueTuple<​T8, T9, T10, T11, T12, T13, T14, ValueTuple<​T15, T16, T17, T18, T19, T20>>> value)
Converts an instance of the <see langword="ValueTuple" /> structure to an instance of the <see langword="Tuple" /> class.
Returns The converted tuple.
value
The value tuple instance to convert to a tuple.
public static
Tuple<​T1, T2, T3, T4, T5, T6, T7, Tuple<​T8, T9, T10, T11, T12, T13, T14, Tuple<​T15, T16, T17, T18, T19, T20, T21>>>
ToTuple​(ValueTuple<​T1, T2, T3, T4, T5, T6, T7, ValueTuple<​T8, T9, T10, T11, T12, T13, T14, ValueTuple<​T15, T16, T17, T18, T19, T20, T21>>> value)
Converts an instance of the <see langword="ValueTuple" /> structure to an instance of the <see langword="Tuple" /> class.
Returns The converted tuple.
value
The value tuple instance to convert to a tuple.
public static
Tuple<​T1, T2, T3>
ToTuple​(ValueTuple<​T1, T2, T3> value)
Converts an instance of the <see langword="ValueTuple" /> structure to an instance of the <see langword="Tuple" /> class.
Returns The converted tuple.
value
The value tuple instance to convert to a tuple.
public static
Tuple<​T1, T2, T3, T4>
ToTuple​(ValueTuple<​T1, T2, T3, T4> value)
Converts an instance of the <see langword="ValueTuple" /> structure to an instance of the <see langword="Tuple" /> class.
Returns The converted tuple.
value
The value tuple instance to convert to a tuple.
public static
Tuple<​T1, T2, T3, T4, T5>
ToTuple​(ValueTuple<​T1, T2, T3, T4, T5> value)
Converts an instance of the <see langword="ValueTuple" /> structure to an instance of the <see langword="Tuple" /> class.
Returns The converted tuple.
value
The value tuple instance to convert to a tuple.
public static
Tuple<​T1, T2, T3, T4, T5, T6>
ToTuple​(ValueTuple<​T1, T2, T3, T4, T5, T6> value)
Converts an instance of the <see langword="ValueTuple" /> structure to an instance of the <see langword="Tuple" /> class.
Returns The converted tuple.
value
The value tuple instance to convert to a tuple.
public static
Tuple<​T1, T2, T3, T4, T5, T6, T7>
ToTuple​(ValueTuple<​T1, T2, T3, T4, T5, T6, T7> value)
Converts an instance of the <see langword="ValueTuple" /> structure to an instance of the <see langword="Tuple" /> class.
Returns The converted tuple.
value
The value tuple instance to convert to a tuple.
ToTuple​(ValueTuple<​T1, T2, T3, T4, T5, T6, T7, ValueTuple<​T8>> value)
Converts an instance of the <see langword="ValueTuple" /> structure to an instance of the <see langword="Tuple" /> class.
Returns The converted tuple.
value
The value tuple instance to convert to a tuple.
ToTuple​(ValueTuple<​T1, T2, T3, T4, T5, T6, T7, ValueTuple<​T8, T9>> value)
Converts an instance of the <see langword="ValueTuple" /> structure to an instance of the <see langword="Tuple" /> class.
Returns The converted tuple.
value
The value tuple instance to convert to a tuple.
public static
ValueTuple<​T1>
ToValueTuple​(Tuple<​T1> value)
Converts an instance of the <see langword="Tuple" /> class to an instance of the <see langword="ValueTuple" /> structure.
Returns The converted value tuple instance.
value
The tuple object to convert to a value tuple.
public static
ValueTuple<​T1, T2, T3, T4, T5, T6, T7, ValueTuple<​T8, T9, T10>>
ToValueTuple​(Tuple<​T1, T2, T3, T4, T5, T6, T7, Tuple<​T8, T9, T10>> value)
Converts an instance of the <see langword="Tuple" /> class to an instance of the <see langword="ValueTuple" /> structure.
Returns The converted value tuple instance.
value
The tuple object to convert to a value tuple.
public static
ValueTuple<​T1, T2, T3, T4, T5, T6, T7, ValueTuple<​T8, T9, T10, T11>>
ToValueTuple​(Tuple<​T1, T2, T3, T4, T5, T6, T7, Tuple<​T8, T9, T10, T11>> value)
Converts an instance of the <see langword="Tuple" /> class to an instance of the <see langword="ValueTuple" /> structure.
Returns The converted value tuple instance.
value
The tuple object to convert to a value tuple.
public static
ValueTuple<​T1, T2, T3, T4, T5, T6, T7, ValueTuple<​T8, T9, T10, T11, T12>>
ToValueTuple​(Tuple<​T1, T2, T3, T4, T5, T6, T7, Tuple<​T8, T9, T10, T11, T12>> value)
Converts an instance of the <see langword="Tuple" /> class to an instance of the <see langword="ValueTuple" /> structure.
Returns The converted value tuple instance.
value
The tuple object to convert to a value tuple.
public static
ValueTuple<​T1, T2, T3, T4, T5, T6, T7, ValueTuple<​T8, T9, T10, T11, T12, T13>>
ToValueTuple​(Tuple<​T1, T2, T3, T4, T5, T6, T7, Tuple<​T8, T9, T10, T11, T12, T13>> value)
Converts an instance of the <see langword="Tuple" /> class to an instance of the <see langword="ValueTuple" /> structure.
Returns The converted value tuple instance.
value
The tuple object to convert to a value tuple.
public static
ValueTuple<​T1, T2, T3, T4, T5, T6, T7, ValueTuple<​T8, T9, T10, T11, T12, T13, T14>>
ToValueTuple​(Tuple<​T1, T2, T3, T4, T5, T6, T7, Tuple<​T8, T9, T10, T11, T12, T13, T14>> value)
Converts an instance of the <see langword="Tuple" /> class to an instance of the <see langword="ValueTuple" /> structure.
Returns The converted value tuple instance.
value
The tuple object to convert to a value tuple.
public static
ValueTuple<​T1, T2, T3, T4, T5, T6, T7, ValueTuple<​T8, T9, T10, T11, T12, T13, T14, ValueTuple<​T15>>>
ToValueTuple​(Tuple<​T1, T2, T3, T4, T5, T6, T7, Tuple<​T8, T9, T10, T11, T12, T13, T14, Tuple<​T15>>> value)
Converts an instance of the <see langword="Tuple" /> class to an instance of the <see langword="ValueTuple" /> structure.
Returns The converted value tuple instance.
value
The tuple object to convert to a value tuple.
public static
ValueTuple<​T1, T2, T3, T4, T5, T6, T7, ValueTuple<​T8, T9, T10, T11, T12, T13, T14, ValueTuple<​T15, T16>>>
ToValueTuple​(Tuple<​T1, T2, T3, T4, T5, T6, T7, Tuple<​T8, T9, T10, T11, T12, T13, T14, Tuple<​T15, T16>>> value)
Converts an instance of the <see langword="Tuple" /> class to an instance of the <see langword="ValueTuple" /> structure.
Returns The converted value tuple instance.
value
The tuple object to convert to a value tuple.
public static
ValueTuple<​T1, T2, T3, T4, T5, T6, T7, ValueTuple<​T8, T9, T10, T11, T12, T13, T14, ValueTuple<​T15, T16, T17>>>
ToValueTuple​(Tuple<​T1, T2, T3, T4, T5, T6, T7, Tuple<​T8, T9, T10, T11, T12, T13, T14, Tuple<​T15, T16, T17>>> value)
Converts an instance of the <see langword="Tuple" /> class to an instance of the <see langword="ValueTuple" /> structure.
Returns The converted value tuple instance.
value
The tuple object to convert to a value tuple.
public static
ValueTuple<​T1, T2, T3, T4, T5, T6, T7, ValueTuple<​T8, T9, T10, T11, T12, T13, T14, ValueTuple<​T15, T16, T17, T18>>>
ToValueTuple​(Tuple<​T1, T2, T3, T4, T5, T6, T7, Tuple<​T8, T9, T10, T11, T12, T13, T14, Tuple<​T15, T16, T17, T18>>> value)
Converts an instance of the <see langword="Tuple" /> class to an instance of the <see langword="ValueTuple" /> structure.
Returns The converted value tuple instance.
value
The tuple object to convert to a value tuple.
public static
ValueTuple<​T1, T2, T3, T4, T5, T6, T7, ValueTuple<​T8, T9, T10, T11, T12, T13, T14, ValueTuple<​T15, T16, T17, T18, T19>>>
ToValueTuple​(Tuple<​T1, T2, T3, T4, T5, T6, T7, Tuple<​T8, T9, T10, T11, T12, T13, T14, Tuple<​T15, T16, T17, T18, T19>>> value)
Converts an instance of the <see langword="Tuple" /> class to an instance of the <see langword="ValueTuple" /> structure.
Returns The converted value tuple instance.
value
The tuple object to convert to a value tuple.
public static
ValueTuple<​T1, T2>
ToValueTuple​(Tuple<​T1, T2> value)
Converts an instance of the <see langword="Tuple" /> class to an instance of the <see langword="ValueTuple" /> structure.
Returns The converted value tuple instance.
value
The tuple object to convert to a value tuple.
public static
ValueTuple<​T1, T2, T3, T4, T5, T6, T7, ValueTuple<​T8, T9, T10, T11, T12, T13, T14, ValueTuple<​T15, T16, T17, T18, T19, T20>>>
ToValueTuple​(Tuple<​T1, T2, T3, T4, T5, T6, T7, Tuple<​T8, T9, T10, T11, T12, T13, T14, Tuple<​T15, T16, T17, T18, T19, T20>>> value)
Converts an instance of the <see langword="Tuple" /> class to an instance of the <see langword="ValueTuple" /> structure.
Returns The converted value tuple instance.
value
The tuple object to convert to a value tuple.
public static
ValueTuple<​T1, T2, T3, T4, T5, T6, T7, ValueTuple<​T8, T9, T10, T11, T12, T13, T14, ValueTuple<​T15, T16, T17, T18, T19, T20, T21>>>
ToValueTuple​(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)
Converts an instance of the <see langword="Tuple" /> class to an instance of the <see langword="ValueTuple" /> structure.
Returns The converted value tuple instance.
value
The tuple object to convert to a value tuple.
public static
ValueTuple<​T1, T2, T3>
ToValueTuple​(Tuple<​T1, T2, T3> value)
Converts an instance of the <see langword="Tuple" /> class to an instance of the <see langword="ValueTuple" /> structure.
Returns The converted value tuple instance.
value
The tuple object to convert to a value tuple.
public static
ValueTuple<​T1, T2, T3, T4>
ToValueTuple​(Tuple<​T1, T2, T3, T4> value)
Converts an instance of the <see langword="Tuple" /> class to an instance of the <see langword="ValueTuple" /> structure.
Returns The converted value tuple instance.
value
The tuple object to convert to a value tuple.
public static
ValueTuple<​T1, T2, T3, T4, T5>
ToValueTuple​(Tuple<​T1, T2, T3, T4, T5> value)
Converts an instance of the <see langword="Tuple" /> class to an instance of the <see langword="ValueTuple" /> structure.
Returns The converted value tuple instance.
value
The tuple object to convert to a value tuple.
public static
ValueTuple<​T1, T2, T3, T4, T5, T6>
ToValueTuple​(Tuple<​T1, T2, T3, T4, T5, T6> value)
Converts an instance of the <see langword="Tuple" /> class to an instance of the <see langword="ValueTuple" /> structure.
Returns The converted value tuple instance.
value
The tuple object to convert to a value tuple.
public static
ValueTuple<​T1, T2, T3, T4, T5, T6, T7>
ToValueTuple​(Tuple<​T1, T2, T3, T4, T5, T6, T7> value)
Converts an instance of the <see langword="Tuple" /> class to an instance of the <see langword="ValueTuple" /> structure.
Returns The converted value tuple instance.
value
The tuple object to convert to a value tuple.
public static
ValueTuple<​T1, T2, T3, T4, T5, T6, T7, ValueTuple<​T8>>
ToValueTuple​(Tuple<​T1, T2, T3, T4, T5, T6, T7, Tuple<​T8>> value)
Converts an instance of the <see langword="Tuple" /> class to an instance of the <see langword="ValueTuple" /> structure.
Returns The converted value tuple instance.
value
The tuple object to convert to a value tuple.
public static
ValueTuple<​T1, T2, T3, T4, T5, T6, T7, ValueTuple<​T8, T9>>
ToValueTuple​(Tuple<​T1, T2, T3, T4, T5, T6, T7, Tuple<​T8, T9>> value)
Converts an instance of the <see langword="Tuple" /> class to an instance of the <see langword="ValueTuple" /> structure.
Returns The converted value tuple instance.
value
The tuple object to convert to a value tuple.
public
bool
Equals​(object obj)
Inherited from object
Determines whether the specified object is equal to the current object.
Returns <see langword="true" /> if the specified object is equal to the current object; otherwise, <see langword="false" /> .
obj
The object to compare with the current object.
protected
void
Finalize​()
Inherited from object
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
public
int
GetHashCode​()
Inherited from object
Serves as the default hash function.
Returns A hash code for the current object.
public
Type
GetType​()
Inherited from object
Gets the <see cref="T:System.Type" /> of the current instance.
Returns The exact runtime type of the current instance.
protected
object
MemberwiseClone​()
Inherited from object
Creates a shallow copy of the current <see cref="T:System.Object" /> .
Returns A shallow copy of the current <see cref="T:System.Object" /> .
public
string
ToString​()
Inherited from object
Returns a string that represents the current object.
Returns A string that represents the current object.