Class Pair<FirstType, SecondType>
Two objects as one.
Use this e.g. to store objects that belong together in a single collection.
Inheritance
Pair<FirstType, SecondType>
Namespace: SdlSdl.FileTypeSupportFramework
Assembly: Sdl.FileTypeSupport.Framework.Core.dll
Syntax
public class Pair<FirstType, SecondType> : ICloneable
Type Parameters
Name |
Description |
FirstType |
|
SecondType |
|
Constructors
Pair(FirstType, SecondType)
Contruct a new pair form the specifiec objects.
Declaration
public Pair(FirstType first, SecondType second)
Parameters
Type |
Name |
Description |
FirstType |
first |
|
SecondType |
second |
|
Properties
First
The first of the two objects in the pair.
Declaration
public FirstType First { get; set; }
Property Value
Type |
Description |
FirstType |
|
Second
The second of the two objects in the pair.
Declaration
public SecondType Second { get; set; }
Property Value
Type |
Description |
SecondType |
|
Methods
Clone()
Clone the pair. If a type implements ICloneable it is deep cloned, otherwise a shallow clone is used.
Declaration
public virtual object Clone()
Returns
Equals(object)
true
if First and Second are equal for both objects.
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
object |
obj |
|
Returns
Overrides
GetHashCode()
Returns a combiniation of the hash codes of First and Second.
Declaration
public override int GetHashCode()
Returns
Overrides
Implements