Search Results for

    Show / Hide Table of Contents

    Class Pair<FirstType, SecondType>

    Two objects as one. Use this e.g. to store objects that belong together in a single collection.

    Inheritance
    object
    Pair<FirstType, SecondType>
    Implements
    ICloneable
    Inherited Members
    object.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    object.MemberwiseClone()
    Namespace: Sdl.FileTypeSupport.Framework
    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
    Type Description
    object

    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
    Type Description
    bool
    Overrides
    object.Equals(object)

    GetHashCode()

    Returns a combiniation of the hash codes of First and Second.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    object.GetHashCode()

    Implements

    ICloneable
    In this article
    • Constructors
      • Pair(FirstType, SecondType)
    • Properties
      • First
      • Second
    • Methods
      • Clone()
      • Equals(object)
      • GetHashCode()
    • Implements
    Back to top Generated by DocFX