Show / Hide Table of Contents

    Class ComparisonUtility

    Provide a generic way to work with System.Comparison<T> related tasks.

    Inheritance
    System.Object
    ComparisonUtility
    Namespace: Cuemon.Collections.Generic
    Assembly: Cuemon.Core.dll
    Syntax
    public static class ComparisonUtility

    Methods

    | Improve this Doc

    Default<T>(T, T, Func<T, Type>, Func<T, Object>)

    Performs a default comparison of two objects of the same type and returns a value indicating whether one object is less than, equal to, or greater than the other.

    Declaration
    public static int Default<T>(T x, T y, Func<T, Type> typeSelector, Func<T, object> valueSelector)
    Parameters
    Type Name Description
    T x

    The first object to compare.

    T y

    The second object to compare.

    System.Func<T, System.Type> typeSelector

    The function delegate that is used to select the System.Type of the objects to compare.

    System.Func<T, System.Object> valueSelector

    The function delegate that is used to select the value of x and y.

    Returns
    Type Description
    System.Int32

    A signed integer that indicates the relative values of x and y.

    Type Parameters
    Name Description
    T

    The type of the objects to compare.

    • Improve this Doc
    • View Source
    Back to top Copyright 2008-2018 Weubphoria. All rights reserved.
    Generated by DocFX