Search Results for

    Show / Hide Table of Contents

    Class CmsValueComparer

    Compare CmsValues.

    Inheritance
    object
    CmsValueComparer
    Implements
    IEqualityComparer<CmsValue>
    IComparer<CmsValue>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Noxum.Nova.Cms.Client
    Assembly: Noxum.Nova.Cms.Client.dll
    Syntax
    public abstract class CmsValueComparer : IEqualityComparer<CmsValue>, IComparer<CmsValue>

    Fields

    Key

    Compare CmsValues by Key only.

    Declaration
    public static readonly CmsValueComparer Key
    Field Value
    Type Description
    CmsValueComparer

    Methods

    Compare(CmsValue, CmsValue)

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

    Declaration
    public abstract int Compare(CmsValue x, CmsValue y)
    Parameters
    Type Name Description
    CmsValue x

    The first object to compare.

    CmsValue y

    The second object to compare.

    Returns
    Type Description
    int

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

    Value Meaning
    Less than zerox is less than y.
    Zerox equals y.
    Greater than zerox is greater than y.

    Equals(CmsValue, CmsValue)

    Determines whether the specified objects are equal.

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

    The first object of type T to compare.

    CmsValue y

    The second object of type T to compare.

    Returns
    Type Description
    bool

    true if the specified objects are equal; otherwise, false.

    GetHashCode(CmsValue)

    Returns a hash code for the specified object.

    Declaration
    public abstract int GetHashCode(CmsValue obj)
    Parameters
    Type Name Description
    CmsValue obj

    The object for which a hash code is to be returned.

    Returns
    Type Description
    int

    A hash code for the specified object.

    Exceptions
    Type Condition
    ArgumentNullException

    The type of obj is a reference type and obj is null.

    Implements

    IEqualityComparer<T>
    IComparer<T>
    In this article
    Back to top Version 6.1.0.31rc