SystemInfo EqualsIgnoringCase Method | Apache log4net™ SDK Documentation

Tests two strings for equality, the ignoring case.

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

C#
VB
C++
F#
Copy

    public static bool EqualsIgnoringCase(
    	string a,
    	string b
    )

    Public Shared Function EqualsIgnoringCase (
    	a As String,
    	b As String
    ) As Boolean

    public:
    static bool EqualsIgnoringCase(
    	String^ a,
    	String^ b
    )

    static member EqualsIgnoringCase :
            a : string *
            b : string -> bool

#### Parameters

a
  Type: System
  String
  The one string.
b
  Type: System
  String
  The other string.

#### Return Value

Type: Boolean
true if the strings are equal, false otherwise.
Remarks

If the platform permits, culture information is ignored completely (ordinal comparison). The aim of this method is to provide a fast comparison that deals with null and ignores different casing. It is not supposed to deal with various, culture-specific habits. Use it to compare against pure ASCII constants, like keywords etc.
See Also

#### Reference

SystemInfo Class
log4net.Util Namespace