GenericPair(TValue1, TValue2) Class

GenericPair<'TValue1, 'TValue2> Class

 

Describes an object that wraps a pair of values.

Namespace:   Microsoft.VisualC.StlClr
Assembly:  Microsoft.VisualC.STLCLR (in Microsoft.VisualC.STLCLR.dll)

System.Object
  Microsoft.VisualC.StlClr.GenericPair<'TValue1, 'TValue2>

type GenericPair<'TValue1, 'TValue2> = class end

Type Parameters

TValue1

Type of the first value in the pair.

TValue2

Type of the second value in the pair.

NameDescription
System_CAPS_pubmethodGenericPair<'TValue1, 'TValue2>()

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

System_CAPS_pubmethodGenericPair<'TValue1, 'TValue2>('TValue1)

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

System_CAPS_pubmethodGenericPair<'TValue1, 'TValue2>('TValue1, 'TValue2)

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

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

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

System_CAPS_pubmethodGenericPair<'TValue1, 'TValue2>(KeyValuePair<'TValue1, 'TValue2>)

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

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines if two GenericPair<'TValue1, 'TValue2> objects are equal.(Overrides Object.Equals(Object).)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodswap(GenericPair<'TValue1, 'TValue2>)

Swaps the contents of two GenericPair<'TValue1, 'TValue2> objects.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_pubfieldfirst

The first wrapped value of the GenericPair<'TValue1, 'TValue2> object.

System_CAPS_pubfieldsecond

The second wrapped value of the GenericPair<'TValue1, 'TValue2> object.

NameDescription
System_CAPS_puboperatorAssign(GenericPair<'TValue1, 'TValue2>)

Replaces the stored pair of values in the GenericPair<'TValue1, 'TValue2> object.

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

.NET Framework
Available since 3.5

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft