Class ComparerExtensions
Extension methods for .Net Comparer's
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit
Assembly: cs.temp.dll.dll
Syntax
public static class ComparerExtensions
Methods
GetReversed<TElement>(IComparer<TElement>)
Gets a comparer that sorts elements in the opposite order of the original comparer.
Declaration
public static IComparer<TElement> GetReversed<TElement>(this IComparer<TElement> originalComparer)
Parameters
Type | Name | Description |
---|---|---|
IComparer<TElement> | originalComparer | The comparer whose order should be reversed. |
Returns
Type | Description |
---|---|
IComparer<TElement> | A comparer that sorts elements in the opposite order of |
Type Parameters
Name | Description |
---|---|
TElement | The type of element the comparer compares. |
GetReversed<TElement>(IComparer<TElement>)
Gets a comparer that sorts elements in the opposite order of the original comparer.
Declaration
public static IComparer<TElement> GetReversed<TElement>(this IComparer<TElement> originalComparer)
Parameters
Type | Name | Description |
---|---|---|
IComparer<TElement> | originalComparer | The comparer whose order should be reversed. |
Returns
Type | Description |
---|---|
IComparer<TElement> | A comparer that sorts elements in the opposite order of |
Type Parameters
Name | Description |
---|---|
TElement | The type of element the comparer compares. |