Version

DefaultCompare(Object,Object,Boolean,Boolean) Method

Compares the two specified objects, if possible.
Syntax
'Declaration
 
Public Overloads Shared Function DefaultCompare( _
   ByVal x As Object, _
   ByVal y As Object, _
   ByVal duringSort As Boolean, _
   ByVal caseInSensitive As Boolean _
) As Integer
public static int DefaultCompare( 
   object x,
   object y,
   bool duringSort,
   bool caseInSensitive
)

Parameters

x
The first object to compare.
y
The object to compare against the first object.
duringSort
True if the method is called during sort, false otherwise.
caseInSensitive
Determines whether the comparison should be done case-sensitively.

Return Value

A 32-bit signed integer that indicates the relative order of the objects being compared. The return value has these meanings: Value Meaning Less than zero This instance is less than obj. Zero This instance is equal to obj. Greater than zero This instance is greater than obj.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, 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