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