Try this:
string.Equals(a, b, StringComparison.CurrentCultureIgnoreCase);
More Related Contents:
- What is the difference between String and string in C#?
- Why .NET String is immutable? [duplicate]
- What is the difference between String and string in C#?
- .NET / C# – Convert char[] to string
- Unrecognized escape sequence for path string containing backslashes
- Finding all positions of substring in a larger string in C#
- Splitting a string / number every Nth Character / Number?
- Check if a value is in an array (C#)
- Is String.Contains() faster than String.IndexOf()?
- Is there an alternative to string.Replace that is case-insensitive?
- How the StringBuilder class is implemented? Does it internally create new string objects each time we append?
- How is GetHashCode() of C# string implemented?
- C# testing to see if a string is an integer?
- Is relying on && short-circuiting safe in .NET?
- How to compare Unicode characters that “look alike”?
- How to know the size of the string in bytes?
- IEnumerable to string [duplicate]
- Fastest way to remove white spaces in string
- Is it possible to create a new operator in c#?
- How to do ToString for a possibly null object?
- String.Format – how it works and how to implement custom formatstrings
- Convert binary string into integer
- Converting String To Float in C#
- DateTime conversion from string C#
- Does String.GetHashCode consider the full string or only part of it?
- Why only literal strings saved in the intern pool by default?
- Remove characters after specific character in string, then remove substring?
- Byte to Binary String C# – Display all 8 digits
- Convert String^ in c# to CString in c++/CLI
- what’s the use of string.Clone()?