Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Utility Namespace / PropertyComparer<T> Class / Compare Method
The first object to compare.
The second object to compare.
In This Topic
    Compare Method (PropertyComparer<T>)
    In This Topic
    Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
    Syntax
    public int Compare( 
       T x,
       T y
    )

    Parameters

    x
    The first object to compare.
    y
    The second object to compare.

    Return Value

    A signed integer that indicates the relative values of x and y, as shown in the following table.

    Value Meaning
    Less than zero x is less than y.
    Zero x equals y.
    Greater than zero x is greater than y.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also