Click or drag to resize
AlgorithmsGetReverseComparisonT Method
Reverses the order of comparison of an Comparison<T>. The resulting comparison can be used, for example, to sort a collection in descending order.

Namespace: X3Platform.Collections
Assembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntax
public static Comparison<T> GetReverseComparison<T>(
	Comparison<T> comparison
)

Parameters

comparison
Type: SystemComparisonT
The comparison to reverse.

Type Parameters

T
The type of items that are being compared.

Return Value

Type: ComparisonT
A Comparison<T> that compares items in the reverse order of comparison.
Exceptions
ExceptionCondition
ArgumentNullExceptioncomparison is null.
See Also