Creates a chained comparison.
public static Func<T, T, int> CreateChainedComparison<T>(params Func<T, T, int>[] comparers)
parameter | description |
---|---|
T | The type of object |
comparers | The comparers. |
A comparer that executes each comparer until one returns non-zero; that value is returned.