Click or drag to resize

SafeComparerCompare Method

Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
14c (14.1.1.0)
F23534-02
Compares its two arguments for order.

Namespace:  Tangosol.Util.Comparator
Assembly:  Coherence (in Coherence.dll) Version: 14.1.1.14 (14.1.1.14)
Syntax
C#
public virtual int Compare(
	Object o1,
	Object o2
)

Parameters

o1
Type: SystemObject
The first object to be compared.
o2
Type: SystemObject
The second object to be compared.

Return Value

Type: Int32
A negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.

Implements

IComparerCompare(Object, Object)
Exceptions
ExceptionCondition
InvalidCastException If the arguments' types prevent them from being compared by this IComparer.
Remarks
Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second. null values are evaluated as "less then" any non-null value. If the wrapped comparer is not specified, all non-null values must implement the IComparable interface.
See Also