devxlogo

November 7, 2017

Case Insensitive Comparison of Two Strings

We often compare two strings to the same case and then compare them to see if they are the same. Instead, we can use the StringComparison class’s InvariantCultureIgnoreCase property. String.Equals(‘stringOne’,