| BaseComparerT, FIELDENUMTYPEIComparerCompare Method |
Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
Namespace:
Omada.OE.Model
Assembly:
Omada.OE.Model (in Omada.OE.Model.dll) Version: 15.0.0.0
Syntaxint IComparer.Compare(
Object x,
Object y
)
Parameters
- x
- Type: SystemObject
The first object to compare. - y
- Type: SystemObject
The second object to compare.
Return Value
Type:
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)
ExceptionsException | 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