Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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

 
Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

public:
ValueTuple(
	T1 item1,
	T2 item2,
	T3 item3,
	T4 item4,
	T5 item5,
	T6 item6,
	T7 item7,
	TRest rest
)

Parameters

item1
Type: T1

The value tuple's first element.

item2
Type: T2

The value tuple's second element.

item3
Type: T3

The value tuple's third element.

item4
Type: T4

The value tuple's fourth element.

item5
Type: T5

The value tuple's fifth element.

item6
Type: T6

The value tuple's sixth element.

item7
Type: T7

The value tuple's seventh element.

rest
Type: TRest

An instance of any value tuple type that contains the values of the value's tuple's remaining elements.

Exception Condition
ArgumentException

rest is not a generic value tuple type.

In addition to using your language's build-in support for tuples, you can also create a value tuple by calling the static ValueTuple::Create<T1, T2, T3, T4, T5, T6, T7, T8>(T1, T2, T3, T4, T5, T6, T7, T8) method without having to explicitly specify the types of its elements.

.NET Framework
Available since 4.7
Return to top
Show:
© 2017 Microsoft