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::Create<T1, T2, T3> Method (T1, T2, T3)

 

Creates a new value tuple with 3 components (a triple).

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

public:
generic<typename T1, typename T2, typename T3>
static ValueTuple<T1, T2, T3> Create(
	T1 item1,
	T2 item2,
	T3 item3
)

Parameters

item1
Type: T1

The value of the value tuple's first component.

item2
Type: T2

The value of the value tuple's second component.

item3
Type: T3

The value of the value tuple's third component.

Return Value

Type: System::ValueTuple<T1, T2, T3>

A value tuple with 3 components.

Type Parameters

T1

The type of the value tuple's first component.

T2

The type of the value tuple's second component.

T3

The type of the value tuple's third component.

Create<T1, T2, T3> is a helper method that you can call to instantiate an 3-component value tuple without having to explicitly specify the types of its components.

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