Class ReverseComparerExtensions
Extension methods to shortcut ReverseComparer<T> usage.
Inheritance
System.Object
ReverseComparerExtensions
Namespace: Mars.Common.Collections.KNNGraph
Assembly: Mars.Common.dll
Syntax
public static class ReverseComparerExtensions : object
Methods
Reverse<T>(IComparer<T>)
Creates new ReverseComparer<T> wrapper for the given comparer.
Declaration
public static ReverseComparer<T> Reverse<T>(this IComparer<T> comparer)
Parameters
Type | Name | Description |
---|---|---|
IComparer<T> | comparer | The source comparer. |
Returns
Type | Description |
---|---|
ReverseComparer<T> | The inverted to source comparer. |
Type Parameters
Name | Description |
---|---|
T | The types of items to comparer. |