Level Compare Method | Apache log4net™ SDK Documentation

Compares two specified Level instances.

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

C#
VB
C++
F#
Copy

    public static int Compare(
    	Level l,
    	Level r
    )

    Public Shared Function Compare (
    	l As Level,
    	r As Level
    ) As Integer

    public:
    static int Compare(
    	Level^ l,
    	Level^ r
    )

    static member Compare :
            l : Level *
            r : Level -> int

#### Parameters

l
  Type: log4net.Core
  Level
  The first Level to compare.
r
  Type: log4net.Core
  Level
  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:

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

#### Reference

Level Class
log4net.Core Namespace