Class
ReverseComparer<T>

The reverse comparer.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.Windows.Diagrams.Core.dll

Type Parameters:

T

The data type being compared.

Syntax:

cs-api-definition
public sealed class ReverseComparer<T> : IComparer<T>

Inheritance: objectReverseComparer<T>

Implements: IComparer<T>

Constructors

ReverseComparer()

Initializes a new instance of the ReverseComparer<T> class. Initializes a new instance of the ReverseComparer<T> class.

Declaration

cs-api-definition
public ReverseComparer()

ReverseComparer(IComparer<T>)

Initializes a new instance of the ReverseComparer<T> class. Initializes a new instance of the ReverseComparer<T> class.

Declaration

cs-api-definition
public ReverseComparer(IComparer<T> comparer)

Parameters

comparer

IComparer<T>

The comparer.

Properties

Comparer

Gets or sets the comparer used in this instance.

Declaration

cs-api-definition
public IComparer<T> Comparer { get; set; }

Property Value

IComparer<T>

The comparer.

Methods

Compare(T, T)

Compares the specified x.

Declaration

cs-api-definition
public int Compare(T x, T y)

Parameters

x

T

The x.

y

T

The y.

Returns

int

The compare.

Implements IComparer<T>.Compare(T, T)