Creates a Comparison delegate from the given Comparer.

Namespace: MonoSoftware.Core.Collections
Assembly: MonoSoftware.Core (in MonoSoftware.Core.dll) Version: 1.0.40.669 (1.0.40.669)

Syntax

C#
public static Comparison<T> CreateComparison(
	IComparer<T> comparer
)
Visual Basic
Public Shared Function CreateComparison ( 
	comparer As IComparer(Of T)
) As Comparison(Of T)
Visual C++
public:
static Comparison<T>^ CreateComparison(
	IComparer<T>^ comparer
)
F#
static member CreateComparison : 
        comparer : IComparer<'T> -> Comparison<'T> 

Parameters

comparer
Type: System.Collections.Generic..::..IComparer<(Of <(<'T>)>)>
Comparer to use when the returned delegate is called. Must not be null.

Return Value

Type: Comparison<(Of <(<'T>)>)>
A Comparison delegate which proxies to the given Comparer.

See Also