Cuemon .NET Framework
Default<T> Method

The type of the objects to compare.
The first object to compare.
The second object to compare.
The function delegate that is used to select the System.Type of the objects to compare.
The function delegate that is used to select the value of x and y.
Performs a default 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.
Syntax
'Declaration
 
Public Shared Function Default(Of T)( _
   ByVal x As T, _
   ByVal y As T, _
   ByVal typeSelector As Cuemon.Doer(Of T,Type), _
   ByVal valueSelector As Cuemon.Doer(Of T,Object) _
) As Integer
public static int Default<T>( 
   T x,
   T y,
   Cuemon.Doer<T,Type> typeSelector,
   Cuemon.Doer<T,object> valueSelector
)

Parameters

x
The first object to compare.
y
The second object to compare.
typeSelector
The function delegate that is used to select the System.Type of the objects to compare.
valueSelector
The function delegate that is used to select the value of x and y.

Type Parameters

T
The type of the objects to compare.

Return Value

A signed integer that indicates the relative values of x and y.
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

ComparisonUtility Class
ComparisonUtility 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