[This is preliminary documentation and is subject to change.]

compare two objects, while gracefully handle null in either one of them

Namespace:  Firefly.Box.Advanced
Assembly:  Firefly.Box (in Firefly.Box.dll) Version: 3.4.23.6473 (3.4.23.6473)

Syntax

C#
public static int Compare(
	Object a,
	Object b
)
Visual Basic (Declaration)
Public Shared Function Compare ( _
	a As Object, _
	b As Object _
) As Integer
Visual C++
public:
static int Compare(
	Object^ a, 
	Object^ b
)

Parameters

a
Type: System..::.Object
b
Type: System..::.Object

Return Value

1 if a is greater than b, -1 if a is less then b and 0 if they are equal

See Also