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.CollectionsAssembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntaxpublic static Comparison<T> GetReverseComparison<T>(
Comparison<T> comparison
)
public:
generic<typename T>
static Comparison<T>^ GetReverseComparison(
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:
ComparisonTA Comparison<T> that compares items in the reverse order of
comparison.
Exceptions
See Also