How to

compare strings with ignoring the case

Published: 25. November 2011 | Updated: 25. November 2011
License: Microsoft Public License (MS-PL)
Categories: Framework » Strings
Tags: Basics C# Text
Was this snippet helpful for you? YESYES / NONO
bool equal = "abc".Equals("ABC", StringComparison.InvariantCultureIgnoreCase); // true
Send us feedback about this snippet »



Related Snippets: