Cuemon .NET Framework
Create<T> Method (DynamicComparer)

The type of objects to compare.
The function delegate that performs a comparison of two objects of the same type and returns a value indicating whether one object is less than, equal to, or greater than the other.
Creates a dynamic instance of an IComparer implementation wrapping Compare through comparer.
Syntax
'Declaration
 
Public Shared Function Create(Of T)( _
   ByVal comparer As Cuemon.Doer(Of T,T,Integer) _
) As IComparer(Of T)
public static IComparer<T> Create<T>( 
   Cuemon.Doer<T,T,int> comparer
)

Parameters

comparer
The function delegate that performs a comparison of two objects of the same type and returns a value indicating whether one object is less than, equal to, or greater than the other.

Type Parameters

T
The type of objects to compare.

Return Value

A dynamic instance of IComparer that serves as a sort order comparer for type T.
Requirements

Target Platforms: Windows 8, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

DynamicComparer Class
DynamicComparer Members

 

 


| Cuemon is licensed under a The MIT License (MIT)



© 2009-2015 Weubphoria. All Rights Reserved.

Documentation made easy with Document! X by Innovasys

Send Feedback