WindowCommandsGraphTableNameComparerCompare Method |
Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
Namespace: Altaxo.Main.CommandsAssembly: AltaxoDom (in AltaxoDom.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntaxpublic int Compare(
Object x,
Object y
)
Parameters
- x Object
- The first object to compare.
- y Object
- The second object to compare.
Return Value
Int32A 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| Exception | Condition |
|---|
| ArgumentException | Neither 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