log4net SDK Reference

Level.Compare Method 

Compares two specified Level instances.

[Visual Basic]
Public Shared Function Compare( _
   ByVal l As Level, _
   ByVal r As Level _
) As Integer
[C#]
public static int Compare(
   Level l,
   Level r
);

Parameters

l
The first Level to compare.
r
The second Level to compare.

Return Value

A 32-bit signed integer that indicates the relative order of the two values compared. The return value has these meanings:

Value Meaning
Less than zero l is less than r.
Zero l is equal to r.
Greater than zero l is greater than r.

Remarks

Compares two levels.

See Also

Level Class | log4net.Core Namespace