c# switch case insensitive code example
Example: c# case insensitive compare
string str1 = null;
string str2 = "london";
str1?.Equals(str2, StringComparison.CurrentCultureIgnoreCase); // true
string str1 = null;
string str2 = "london";
str1?.Equals(str2, StringComparison.CurrentCultureIgnoreCase); // true