Summer.Batch.Extra.Sort.Comparer.ComparerChain< T > Class Template Reference
Implementation of IComparer<T> that chains a list of IComparer<T>s. The result of the comparison is the result of the first sub-comparers that has a result different than zero, or zero if all comparers return zero. More...
Inheritance diagram for Summer.Batch.Extra.Sort.Comparer.ComparerChain< T >:
Public Member Functions | |
int | Compare (T x, T y) |
Compares two objects using sub-comparers. More... | |
Properties | |
IList< IComparer< T > > | Comparers [get, set] |
The sub-comparers. More... | |
Detailed Description
Implementation of IComparer<T> that chains a list of IComparer<T>s. The result of the comparison is the result of the first sub-comparers that has a result different than zero, or zero if all comparers return zero.
- Template Parameters
-
T
Member Function Documentation
int Summer.Batch.Extra.Sort.Comparer.ComparerChain< T >.Compare | ( | T | x, |
T | y | ||
) |
Compares two objects using sub-comparers.
- Returns
- the result of the first sub-comparers that has a result different than zero, or zero if all comparers return zero
- Parameters
-
x The first object to compare. y The second object to compare.
Property Documentation
|
getset |
The sub-comparers.
The documentation for this class was generated from the following file:
- Summer.Batch.Extra/Sort/Comparer/ComparerChain.cs