Tests two strings for equality, the ignoring case.
Namespace: log4net.UtilAssembly: log4net (in log4net.dll) Version: 2.0.6.0-.NET 4.0
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: SystemString
The one string. - b
- Type: SystemString
The other string.
Return Value
Type:
Booleantrue if the strings are equal,
false otherwise.
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.
Reference