Search Results for

    Show / Hide Table of Contents

    Class Pair<T1, T2>

    A 2-tuple.

    Inheritance
    System.Object
    Pair<T1, T2>
    Namespace: FM.LiveSwitch
    Assembly: FM.LiveSwitch.dll
    Syntax
    public class Pair<T1, T2> : object
    Type Parameters
    Name Description
    T1

    First type the tuple holds.

    T2

    Second type the tuple holds.

    Constructors

    Pair(T1, T2)

    Initializes a new instance of the Pair<T1, T2> class.

    Declaration
    public Pair(T1 item1, T2 item2)
    Parameters
    Type Name Description
    T1 item1

    First item the tuple holds.

    T2 item2

    Second item the tuple holds.

    Properties

    Item1

    Gets the first item in the tuple.

    Declaration
    public T1 Item1 { get; }
    Property Value
    Type Description
    T1

    Item2

    Gets the second item in the tuple.

    Declaration
    public T2 Item2 { get; }
    Property Value
    Type Description
    T2

    Methods

    Equals(Object)

    Determines whether the specified System.Object is equal to the current System.Object.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj

    The object to compare with the current object.

    Returns
    Type Description
    System.Boolean

    true if the specified System.Object is equal to the current System.Object; otherwise, false.

    GetHashCode()

    Calculates the hashcode for this pair.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    In This Article
    Back to top Copyright © LiveSwitch Inc. All Rights Reserved. Doc build for LiveSwitch v1.15.0