Level CompareTo Method Apache log4net™ SDK Documentation
Compares this instance to a specified object and returns an indication of their relative values.

Namespace: log4net.Core
Assembly: log4net (in log4net.dll) Version: 1.2.15.0 (1.2.15.0)
Syntax

public int CompareTo(
	Object r
)

Parameters

r
Type: OnlineSystem Object
A Level instance or   to compare with this instance.

Return Value

Type: OnlineInt32
A 32-bit signed integer that indicates the relative order of the values compared. The return value has these meanings:
ValueMeaning
Less than zeroThis instance is less than r.
ZeroThis instance is equal to r.
Greater than zeroThis instance is greater than r.

-or-

r is  .

Implements

OnlineIComparable CompareTo(Object)
Exceptions

Remarks

r must be an instance of Level or  ; otherwise, an exception is thrown.

See Also