AlgorithmsGetComparerFromComparisonT Method |
Given a comparison delegate that compares two items of type T, gets an
IComparer<T> instance that performs the same comparison.
Namespace: X3Platform.CollectionsAssembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntaxpublic static IComparer<T> GetComparerFromComparison<T>(
Comparison<T> comparison
)
public:
generic<typename T>
static IComparer<T>^ GetComparerFromComparison(
Comparison<T>^ comparison
)
Parameters
- comparison
- Type: SystemComparisonT
The comparison delegate to use.
Type Parameters
- T
[Missing <typeparam name="T"/> documentation for "M:X3Platform.Collections.Algorithms.GetComparerFromComparison``1(System.Comparison{``0})"]
Return Value
Type:
IComparerTAn IComparer<T> that performs the same comparing operation
as
comparison.
See Also