ValueTuple::Create<T1> Method (T1)

 

Creates a new value tuple with 1 component (a singleton).

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

public:
generic<typename T1>
static ValueTuple<T1> Create(
	T1 item1
)

Parameters

item1
Type: T1

The value of the value tuple's only component.

Return Value

Type: System::ValueTuple<T1>

A value tuple with 1 component.

Type Parameters

T1

The type of the value tuple's only component.

Create<T1> is a helper method that you can call to instantiate a 1-component value tuple without having to explicitly specify the type of its component.

.NET Framework
Available since 4.7
Return to top
Show: