ComparisonUtility.CreateComparer<T> method (1 of 2)

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.

Return Value

The comparer.

See Also


ComparisonUtility.CreateComparer<T> method (2 of 2)

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.

Return Value

The comparer.

See Also