LevelCompare Method Apache log4net™ SDK Documentation
Compares two specified Level instances.

Namespace: log4net.Core
Assembly: log4net (in log4net.dll) Version: 2.0.6.0-.NET 4.0
Syntax

public static int Compare(
	Level l,
	Level r
)

Parameters

l
Type: log4net.CoreLevel
The first Level to compare.
r
Type: log4net.CoreLevel
The second Level to compare.

Return Value

Type: Int32
A 32-bit signed integer that indicates the relative order of the two values compared. The return value has these meanings:
ValueMeaning
Less than zerol is less than r.
Zerol is equal to r.
Greater than zerol is greater than r.
Remarks

Compares two levels.

See Also

Reference