[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Compares values for sorting.

Namespace: net.esper.eql.core
Assembly:   NEsper (in NEsper.dll)

Syntax

Visual Basic (Declaration)
Protected Shared Function CompareValues ( _
	valueOne As Object, _
	valueTwo As Object, _
	descending As Boolean _
) As Integer
C#
protected static int CompareValues (
	Object valueOne,
	Object valueTwo,
	bool descending
)
Visual C++
protected:
static int CompareValues (
	Object^ valueOne, 
	Object^ valueTwo, 
	bool descending
)

Parameters

valueOne
System.Object
first value to compare, can be null
valueTwo
System.Object
second value to compare, can be null
descending
System.Boolean
true if ascending, false if descending

Return Value

0 if equal, -1 if smaller, +1 if larger