GridSerializer.DefaultCompare Method
Implements a default comparison of two objects by using their IComparable implementations.
Namespace: Microsoft.SharePoint.JSGrid
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Function DefaultCompare ( _
left As Object, _
right As Object, _
strict As Boolean _
) As Integer
'Usage
Dim left As Object
Dim right As Object
Dim strict As Boolean
Dim returnValue As Integer
returnValue = GridSerializer.DefaultCompare(left, _
right, strict)
public static int DefaultCompare(
Object left,
Object right,
bool strict
)
Parameters
left
Type: System.ObjectThe first of two objects to be compared.
right
Type: System.ObjectThe second of two objects to be compared.
strict
Type: System.BooleanThis parameter is ignored. It must be present so that this method matches the ValueComparer delegate signature.
Return Value
Type: System.Int32
Int32 is less than zero if the left operand is less than the right operand, zero if the operands are equal, and positive if the left is greater than the right.
Exceptions
Exception | Condition |
---|---|
Exception | The operands are different types. |