Export (0) Print
Expand All

GenericPair(Of TValue1, TValue2) Class

Describes an object that wraps a pair of values.

System.Object
  Microsoft.VisualC.StlClr.GenericPair(Of TValue1, TValue2)

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

'Declaration
Public Class GenericPair(Of TValue1, TValue2)

Type Parameters

TValue1

Type of the first value in the pair.

TValue2

Type of the second value in the pair.

The GenericPair(Of TValue1, TValue2) type exposes the following members.

  NameDescription
Public methodGenericPair(Of TValue1, TValue2)Constructs a new GenericPair(Of TValue1, TValue2) object with default values for first and second.
Public methodGenericPair(Of TValue1, TValue2)(TValue1)Constructs a new GenericPair(Of TValue1, TValue2) object and assigns its first value to the specified value.
Public methodGenericPair(Of TValue1, TValue2)(GenericPair(Of TValue1, TValue2))Constructs a new GenericPair(Of TValue1, TValue2) object from an existing GenericPair(Of TValue1, TValue2) object.
Public methodGenericPair(Of TValue1, TValue2)(KeyValuePair(Of TValue1, TValue2))Constructs a new GenericPair(Of TValue1, TValue2) object from an existing KeyValuePair(Of TKey, TValue) object.
Public methodGenericPair(Of TValue1, TValue2)(TValue1, TValue2)Constructs a new GenericPair(Of TValue1, TValue2) object with the two values specified.
Top

  NameDescription
Public methodEqualsDetermines if two GenericPair(Of TValue1, TValue2) objects are equal. (Overrides Object.Equals(Object).)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodswapSwaps the contents of two GenericPair(Of TValue1, TValue2) objects.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public operatorAssignReplaces the stored pair of values in the GenericPair(Of TValue1, TValue2) object.
Top

  NameDescription
Public fieldfirstThe first wrapped value of the GenericPair(Of TValue1, TValue2) object.
Public fieldsecondThe second wrapped value of the GenericPair(Of TValue1, TValue2) object.
Top

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

.NET Framework

Supported in: 4.5, 4, 3.5

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

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