Search Results for

    Show / Hide Table of Contents

    Interface IRefComparer<TKey>

    Defines a method that a type implements to compare two objects.

    Namespace: Tenray.ZoneTree.Comparers
    Assembly: ZoneTree.dll
    Syntax
    public interface IRefComparer<TKey>
    Type Parameters
    Name Description
    TKey

    Key type

    Methods

    | Improve this Doc View Source

    Compare(in TKey, in TKey)

    Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.

    Declaration
    int Compare(in TKey x, in TKey y)
    Parameters
    Type Name Description
    TKey x

    The first key

    TKey y

    The second key

    Returns
    Type Description
    int

    -1 (x < y), 0 (x == y) or 1 (x > y)

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2022 Tenray.io