Show / Hide Table of Contents

    Class StructuralSwitchFlowComparer

    An equality comparer that for structural switch flow equality.

    Inheritance
    System.Object
    StructuralSwitchFlowComparer
    Implements
    System.Collections.Generic.IEqualityComparer<SwitchFlow>
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Flame.Compiler.Flow
    Assembly: Flame.Compiler.dll
    Syntax
    public sealed class StructuralSwitchFlowComparer : IEqualityComparer<SwitchFlow>

    Methods

    | Improve this Doc View Source

    Equals(SwitchFlow, SwitchFlow)

    Tests if two switch flows are structurally equal.

    Declaration
    public bool Equals(SwitchFlow x, SwitchFlow y)
    Parameters
    Type Name Description
    SwitchFlow x

    A first switch flow.

    SwitchFlow y

    A second switch flow.

    Returns
    Type Description
    System.Boolean

    true if the switch flows are structurally equal; otherwise, false.

    | Improve this Doc View Source

    GetHashCode(SwitchFlow)

    Computes the hash code for a particular switch flow.

    Declaration
    public int GetHashCode(SwitchFlow obj)
    Parameters
    Type Name Description
    SwitchFlow obj

    The switch flow to compute a hash code for.

    Returns
    Type Description
    System.Int32

    A hash code.

    Implements

    System.Collections.Generic.IEqualityComparer<T>
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX