Creates a comparer from a delegate.
public static Comparer<T> CreateComparer<T>(Func<T?, T?, int> comparer)
parameter | description |
---|---|
T | The type to compare. |
comparer | The compare delegate. |
The comparer.
Creates a comparer from a delegate.
public static Comparer<T> CreateComparer<T>(params Func<T?, T?, int>[] comparers)
parameter | description |
---|---|
T | The type to compare. |
comparers | The compare delegates. |
The comparer.