Table of Contents

Class ComparerExtensions

Namespace
CarinaStudio.Collections
Assembly
CarinaStudio.AppBase.Core.dll

Extensions for IComparer<T>.

public static class ComparerExtensions
Inheritance
ComparerExtensions
Inherited Members

Methods

Invert<T>(IComparer<T>)

Create new IComparer<T> which generates inverse result of given IComparer<T>.

public static IComparer<T> Invert<T>(this IComparer<T> comparer)

Parameters

comparer IComparer<T>

IComparer<T>.

Returns

IComparer<T>

IComparer<T> which generates inverse result of given IComparer<T>.

Type Parameters

T

Type of value to compare.