| string strCompare = "testcomPARE";
if (strCompare.Equals("testcompare", StringComparison.InvariantCultureIgnoreCase)) { /// } |
Below is the best way to compare the string in C# and ignore the case sensitive.
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment
It is the same account you read, post and publish with — and you will come straight back to this page.
Akshatha SalianPosted Jul 4, 2013, 7:14 AM
Kool :)