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 ( x,
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
xThe first object to compare.
yThe second object to compare.

Property Documentation

IList<IComparer<T> > Summer.Batch.Extra.Sort.Comparer.ComparerChain< T >.Comparers
getset

The sub-comparers.


The documentation for this class was generated from the following file:
  • Summer.Batch.Extra/Sort/Comparer/ComparerChain.cs