public void chain(ChainableComparer <T> lastComparer) { if (_nextComparer == null) { _nextComparer = lastComparer; } else { _nextComparer.chain(lastComparer); } }
public ChainableComparer <T> Then(ChainableComparer <T> comparer) { if (_nextComparer == null) { _nextComparer = comparer; } else { _lastComparer.chain(comparer); } _lastComparer = comparer; return(this); }