Click or drag to resize

WindowCommandsGraphTableMultiComparerCompare Method

Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.

Namespace: Altaxo.Main.Commands
Assembly: AltaxoDom (in AltaxoDom.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public int Compare(
	Object x,
	Object y
)

Parameters

x  Object
The first object to compare.
y  Object
The second object to compare.

Return Value

Int32
A signed integer that indicates the relative values of x and y:
- If less than 0, x is less than y.
- If 0, x equals y.
- If greater than 0, x is greater than y.

Implements

IComparerCompare(Object, Object)
Exceptions
ExceptionCondition
ArgumentExceptionNeither x nor y implements the IComparable interface. -or- x and y are of different types and neither one can handle comparisons with the other.
See Also