C5  2.4
The C5 Generic Collection Library for C# and CLI is a comprehensive collection library supporting lists, sets, bags, dictionaries, priority queues, (FIFO) queues, and (LIFO) stacks. C5 runs on .NET 3.5+, Silverlight 5, Windows Phone 8, Xamarin.iOS, Xamarin.Android, and Mono.
C5.KeyValuePairComparer< K, V > Class Template Reference

Default comparer for dictionary entries in a sorted dictionary. Entry comparisons only look at keys and uses an externally defined comparer for that. More...

Inheritance diagram for C5.KeyValuePairComparer< K, V >:

Public Member Functions

 KeyValuePairComparer (SCG.IComparer< K > comparer)
 Create an entry comparer for a item comparer of the keys More...
 
int Compare (KeyValuePair< K, V > entry1, KeyValuePair< K, V > entry2)
 Compare two entries More...
 

Detailed Description

Default comparer for dictionary entries in a sorted dictionary. Entry comparisons only look at keys and uses an externally defined comparer for that.

Constructor & Destructor Documentation

C5.KeyValuePairComparer< K, V >.KeyValuePairComparer ( SCG.IComparer< K >  comparer)

Create an entry comparer for a item comparer of the keys

Parameters
comparerComparer of keys

Member Function Documentation

int C5.KeyValuePairComparer< K, V >.Compare ( KeyValuePair< K, V >  entry1,
KeyValuePair< K, V >  entry2 
)

Compare two entries

Parameters
entry1First entry
entry2Second entry
Returns
The result of comparing the keys

The documentation for this class was generated from the following file: