GenericPair<TValue1,TValue2> Constructors

Definition

Constructs a new GenericPair<TValue1,TValue2> object.

Overloads

GenericPair<TValue1,TValue2>()

Constructs a new GenericPair<TValue1,TValue2> object with default values for first and second.

GenericPair<TValue1,TValue2>(GenericPair<TValue1,TValue2>)

Constructs a new GenericPair<TValue1,TValue2> object from an existing GenericPair<TValue1,TValue2> object.

GenericPair<TValue1,TValue2>(KeyValuePair<TValue1,TValue2>)

Constructs a new GenericPair<TValue1,TValue2> object from an existing KeyValuePair<TKey,TValue> object.

GenericPair<TValue1,TValue2>(TValue1)

Constructs a new GenericPair<TValue1,TValue2> object and assigns its first value to the specified value.

GenericPair<TValue1,TValue2>(TValue1, TValue2)

Constructs a new GenericPair<TValue1,TValue2> object with the two values specified.

Remarks

For more information, see pair::pair (STL/CLR).

GenericPair<TValue1,TValue2>()

Constructs a new GenericPair<TValue1,TValue2> object with default values for first and second.

public GenericPair ();

Remarks

For more information, see pair::pair (STL/CLR).

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

GenericPair<TValue1,TValue2>(GenericPair<TValue1,TValue2>)

Constructs a new GenericPair<TValue1,TValue2> object from an existing GenericPair<TValue1,TValue2> object.

public GenericPair (Microsoft.VisualC.StlClr.GenericPair<TValue1,TValue2> _Right);

Parameters

_Right
GenericPair<TValue1,TValue2>

The GenericPair<TValue1,TValue2> object to be copied into the new GenericPair<TValue1,TValue2> object.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

GenericPair<TValue1,TValue2>(KeyValuePair<TValue1,TValue2>)

Constructs a new GenericPair<TValue1,TValue2> object from an existing KeyValuePair<TKey,TValue> object.

public GenericPair (ref System.Collections.Generic.KeyValuePair<TValue1,TValue2> _Right);

Parameters

_Right
KeyValuePair<TValue1,TValue2>

The KeyValuePair<TKey,TValue> object to be copied into the new GenericPair<TValue1,TValue2> object.

Remarks

For more information, see pair::pair (STL/CLR).

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

GenericPair<TValue1,TValue2>(TValue1)

Constructs a new GenericPair<TValue1,TValue2> object and assigns its first value to the specified value.

public GenericPair (TValue1 _Val1);

Parameters

_Val1
TValue1

The value to store in first. The second value is assigned the default value for its type.

Remarks

For more information, see pair::pair (STL/CLR).

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

GenericPair<TValue1,TValue2>(TValue1, TValue2)

Constructs a new GenericPair<TValue1,TValue2> object with the two values specified.

public GenericPair (TValue1 _Val1, TValue2 _Val2);

Parameters

_Val1
TValue1

The value to store in first.

_Val2
TValue2

The value to store in second.

Remarks

For more information, see pair::pair (STL/CLR).

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1