Class ReverseComparerExtensions
Extension methods to shortcut ReverseComparer<T> usage.
Inheritance
System.Object
ReverseComparerExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Mars.Common.Collections.KNNGraph
Assembly: Mars.Common.dll
Syntax
public static class ReverseComparerExtensions
Methods
| Improve this Doc View SourceReverse<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 |
---|---|---|
System.Collections.Generic.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. |