C-minor v0.0

OperatorEvaluation.Compare Method

Assembly: Topten.Cminor.Compiler.dll
Namespace: Topten.Cminor
Declaring Type: OperatorEvaluation

Overloads

Compare(object, object)

Arithmetic Comparison

Compare(object, object, string)

Arithmetic Comparison

Compare(object, object)

Arithmetic Comparison

public static object Compare(object a, object b);

Parameters

object a

The first operand

object b

The second operand

Returns

object

-1 if a is less than b, 0 if equal, 1 if a is greater than b

Compare(object, object, string)

Arithmetic Comparison

public static object Compare(object a, object b, string symbol);

Parameters

object a

The first operand

object b

The second operand

string symbol

Symbo to use in exception

Returns

object

-1 if a is less than b, 0 if equal, 1 if a is greater than b