ClassMupleComparer<TKey, TValue>
Class
A 2-tuple comparer assuming that the first entry acts as a comparable key.
Definition
Namespace:Telerik.Windows.Diagrams.Core
Assembly:Telerik.Windows.Diagrams.Core.dll
Type Parameters:
TKey
The type of the key.
TValue
The type of the value.
Syntax:
cs-api-definition
public class MupleComparer<TKey, TValue> : IComparer<Muple<TKey, TValue>> where TKey : IComparable
Inheritance: objectMupleComparer<TKey, TValue>
Implements:
Constructors
MupleComparer()
Initializes a new instance of the MupleComparer<TKey, TValue> class.
Declaration
cs-api-definition
public MupleComparer()
MupleComparer(IComparer<TKey>)
Initializes a new instance of the MupleComparer<TKey, TValue> class.
Declaration
cs-api-definition
public MupleComparer(IComparer<TKey> comparer)
Parameters
comparer
IComparer<TKey>
The comparer.
Properties
DefaultComparer
Gets the default comparer for the type of association specified.
Declaration
cs-api-definition
[SuppressMessage("Microsoft.Design", "CA1000:DoNotDeclareStaticMembersOnGenericTypes")]
public static MupleComparer<TKey, TValue> DefaultComparer { get; }
Property Value
MupleComparer<TKey, TValue>
The default comparer.
Methods
Compare(Muple<TKey, TValue>, Muple<TKey, TValue>)
Compares the two objects.
Compare(TKey, TKey)
Compares the two values.
Declaration
cs-api-definition
public int Compare(TKey x, TKey y)
Parameters
x
TKey
The x.
y
TKey
The y.
Returns