GenericPair<TValue1,TValue2> Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Describes an object that wraps a pair of values.
generic <typename TValue1, typename TValue2>
public ref class GenericPair
public class GenericPair<TValue1,TValue2>
type GenericPair<'TValue1, 'TValue2> = class
Public Class GenericPair(Of TValue1, TValue2)
- TValue1
Type of the first value in the pair.
- TValue2
Type of the second value in the pair.
- Inheritance
-
GenericPair<TValue1,TValue2>
For more information, see pair (STL/CLR).
Generic |
Constructs a new GenericPair<TValue1,TValue2> object with default values for first and second. |
Generic |
Constructs a new GenericPair<TValue1,TValue2> object from an existing GenericPair<TValue1,TValue2> object. |
Generic |
Constructs a new GenericPair<TValue1,TValue2> object from an existing KeyValuePair<TKey,TValue> object. |
Generic |
Constructs a new GenericPair<TValue1,TValue2> object with the two values specified. |
Generic |
Constructs a new GenericPair<TValue1,TValue2> object and assigns its first value to the specified value. |
first |
The first wrapped value of the GenericPair<TValue1,TValue2> object. |
second |
The second wrapped value of the GenericPair<TValue1,TValue2> object. |
Equals(Object) |
Determines if two GenericPair<TValue1,TValue2> objects are equal. |
Get |
Serves as the default hash function. (Inherited from Object) |
Get |
Gets the Type of the current instance. (Inherited from Object) |
Memberwise |
Creates a shallow copy of the current Object. (Inherited from Object) |
swap(Generic |
Swaps the contents of two GenericPair<TValue1,TValue2> objects. |
To |
Returns a string that represents the current object. (Inherited from Object) |
Assign(Generic |
Replaces the stored pair of values in the GenericPair<TValue1,TValue2> object. |
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 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: