menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class Comparer - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class Comparer

    A comparer, compares int or double value for any of the comparison operators.

    Inheritance
    System.Object
    Comparer
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.Windows.Grid.Olap
    Assembly: Syncfusion.OlapGrid.WPF.dll
    Syntax
    public class Comparer

    Constructors

    Comparer()

    Initializes a new instance of the Comparer class.

    Declaration
    public Comparer()

    Comparer(Double)

    Initializes a new instance of the Comparer class.

    Declaration
    public Comparer(double doubleValue)
    Parameters
    Type Name Description
    System.Double doubleValue

    The double value.

    Comparer(Int32)

    Initializes a new instance of the Comparer class.

    Declaration
    public Comparer(int intValue)
    Parameters
    Type Name Description
    System.Int32 intValue

    The int value.

    Operators

    GreaterThan(Comparer, Comparer)

    Implements the operator >.

    Declaration
    public static bool operator>(Comparer intValue, Comparer doubleValue)
    Parameters
    Type Name Description
    Comparer intValue

    The int value.

    Comparer doubleValue

    The double value.

    Returns
    Type Description
    System.Boolean

    The result of the operator.

    GreaterThanOrEqual(Comparer, Comparer)

    Implements the operator >=.

    Declaration
    public static bool operator >=(Comparer intValue, Comparer doubleValue)
    Parameters
    Type Name Description
    Comparer intValue

    The int value.

    Comparer doubleValue

    The double value.

    Returns
    Type Description
    System.Boolean

    The result of the operator.

    LessThan(Comparer, Comparer)

    Implements the operator <.

    Declaration
    public static bool operator <(Comparer intValue, Comparer doubleValue)
    Parameters
    Type Name Description
    Comparer intValue

    The int value.

    Comparer doubleValue

    The double value.

    Returns
    Type Description
    System.Boolean

    The result of the operator.

    LessThanOrEqual(Comparer, Comparer)

    Implements the operator <=.

    Declaration
    public static bool operator <=(Comparer intValue, Comparer doubleValue)
    Parameters
    Type Name Description
    Comparer intValue

    The int value.

    Comparer doubleValue

    The double value.

    Returns
    Type Description
    System.Boolean

    The result of the operator.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved