Click or drag to resize
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.Collections
Assembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntax
public static IComparer<T> GetComparerFromComparison<T>(
	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: IComparerT
An IComparer<T> that performs the same comparing operation as comparison.
See Also