Share via


Pair<T1, T2> Members

Include Protected Members
Include Inherited Members

Represents a container for a pair of reference type instances.

The Pair<T1, T2> type exposes the following members.

Constructors

  Name Description
Public method Pair<T1, T2> Constructs a pair of values from the given values.

Top

Properties

  Name Description
Public property First Gets the first value in the pair.
Public property IsEmpty Returns a value that indicates whether either value of the pair is empty.
Public property IsNullOrEmpty Returns a value that indicates whether either value of the pair is a null reference (Nothing in Visual Basic) or empty.
Public property Second Gets the second value in the pair.

Top

Methods

  Name Description
Public method Equals Indicates whether the values and the types of values in this pair and the supplied pair are the same. (Overrides ValueType.Equals(Object).)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode Gets the hash code of the two reference type instances. (Overrides ValueType.GetHashCode().)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString() Provides a string representation of the two values in the pair. (Overrides ValueType.ToString().)
Public method ToString(String) Replaces the {0} and {1} tokens in the supplied format string with the string values of the first and second values in the pair.

Top

Operators

  Name Description
Public operatorStatic member Equality Determines whether the values and the types of values in this pair and those in a supplied pair are the same.
Public operatorStatic member Inequality Determines whether the values and the types of values in this pair and those in a supplied pair are not the same.

Top

See Also

Reference

Pair<T1, T2> Structure

Microsoft.BusinessData.Infrastructure Namespace