Class MupleComparer<TKey, TValue>
A 2-tuple comparer assuming that the first entry acts as a comparable key.
Inheritance
Namespace: Telerik.Windows.Diagrams.Core
Assembly: Telerik.Windows.Diagrams.Core.dll
Syntax
public class MupleComparer<TKey, TValue> : Object, IComparer<Muple<TKey, TValue>> where TKey : IComparable
Type Parameters
TKey
The type of the key. |
TValue
The type of the value. |
Constructors
MupleComparer()
Initializes a new instance of the MupleComparer<TKey, TValue> class.
Declaration
public MupleComparer()
MupleComparer(IComparer<TKey>)
Initializes a new instance of the MupleComparer<TKey, TValue> class.
Declaration
public MupleComparer(IComparer<TKey> comparer)
Parameters
System.Collections.Generic.IComparer<TKey>
comparer
The comparer. |
Properties
DefaultComparer
Gets the default comparer for the type of association specified.
Declaration
public static MupleComparer<TKey, TValue> DefaultComparer { get; }
Property Value
MupleComparer<TKey, TValue>
The default comparer. |
Methods
Compare(TKey, TKey)
Compares the two values.
Declaration
public int Compare(TKey x, TKey y)
Parameters
TKey
x
The x. |
TKey
y
The y. |
Returns
System.Int32
|
Compare(Muple<TKey, TValue>, Muple<TKey, TValue>)
Compares the two objects.
Declaration
public int Compare(Muple<TKey, TValue> x, Muple<TKey, TValue> y)
Parameters
Muple<TKey, TValue>
x
The x. |
Muple<TKey, TValue>
y
The y. |
Returns
System.Int32
|