Class ComparisonComparer<T>
System.Collections.Generic.IComparer<T> implementation based on a Comparison.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Diagrams.Core
Assembly: Telerik.Windows.Diagrams.Core.dll
Syntax
public sealed class ComparisonComparer<T> : IComparer<T>
Type Parameters
T
The data type being compared. |
Constructors
ComparisonComparer(Comparison<T>)
Initializes a new instance of the ComparisonComparer<T> class.
Declaration
public ComparisonComparer(Comparison<T> comparison)
Parameters
System.Comparison<T>
comparison
The comparison. |
Properties
Comparison
Gets or sets the comparison used in this comparer.
Declaration
public Comparison<T> Comparison { get; set; }
Property Value
System.Comparison<T>
The comparison used in this comparer. |
Methods
Compare(T, T)
Compares the given items.
Declaration
public int Compare(T x, T y)
Parameters
T
x
The x. |
T
y
The y. |
Returns
System.Int32
|