Method Equals
Equals(String, String, Boolean)
Determines whether two
String instances have the same value based on a case-sensitive
comparison, optionally taking the current culture into account.
Declaration
public static bool Equals(this string self, string other, bool useCurrentCulture)
Parameters
Type |
Name |
Description |
String |
self |
This String instance to compare with another. Can be null . |
String |
other |
The String instance to compare with. Can be null . |
Boolean |
useCurrentCulture |
If set to true , the current culture will be taken into account, otherwise the strings are
compared ordinally.
|
Returns
Type |
Description |
Boolean |
true , if both strings are equal w.r.t. the culture flag. |