Click or drag to resize
PairTVal1, TVal2 Class
Simple class which represents a pair of values which can be of different types. It's not a struct so it can be modified in-place inside other constructs.
Inheritance Hierarchy
SystemObject
  SD.Tools.Algorithmia.GeneralDataStructuresPairTVal1, TVal2

Namespace:  SD.Tools.Algorithmia.GeneralDataStructures
Assembly:  SD.Tools.Algorithmia (in SD.Tools.Algorithmia.dll) Version: 1.3.0.0 (1.3.17.0314)
Syntax
[SerializableAttribute]
public class Pair<TVal1, TVal2>

Type Parameters

TVal1
The type of value 1.
TVal2
The type of value 2.

The PairTVal1, TVal2 type exposes the following members.

Constructors
  NameDescription
Public methodPairTVal1, TVal2
Initializes a new instance of the PairTVal1, TVal2 class.
Public methodPairTVal1, TVal2(TVal1, TVal2)
Initializes a new instance of the PairTVal1, TVal2 class.
Top
Properties
  NameDescription
Public propertyValue1
Gets or sets Value1.
Public propertyValue2
Gets or sets Value2.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Overrides ObjectEquals(Object).)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Returns the hashcode of this instance.
(Overrides ObjectGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks
Pair implements Equals and GetHashCode. The implementation is oriented towards C# null behavior (null==null is true), so if you're using VB.NET, you've to take this into account.
See Also