Class DelegateComparer<T>

A generic comparer for type T based on a Comparison[T] delegate
Type parameters:
T

Implements

System.Collections.Generic.IComparer<T>

Bases

object

Constructor overview

DelegateComparer<T>(System.Comparison<T> comparison)

Method overview

Compare(T item1, T item2) ,
Equals(object obj), Inherited from object ,
Finalize(), Inherited from object ,
GetHashCode(), Inherited from object ,
GetType(), Inherited from object ,
MemberwiseClone(), Inherited from object ,
ToString(), Inherited from object

Constructor details

DelegateComparer<T>(System.Comparison<T> comparison)
Parameters:
comparison:

Method details

F int Compare(T item1, T item2)
Returns:item1 <=> item2
Parameters:
item1:First item
item2:Second item