Skip to content

Instantly share code, notes, and snippets.

@leandrocustodio
Created May 13, 2013 13:22
Show Gist options
  • Save leandrocustodio/5568264 to your computer and use it in GitHub Desktop.
Save leandrocustodio/5568264 to your computer and use it in GitHub Desktop.
Ignore case c# para comparação de duas strings
/*String.Equals*/
string.Equals("STringG", "strIng", StringComparison.OrdinalIgnoreCase)
/*or*/
string text = "STRING";
text.Equals("string", StringComparison.OrdinalIgnoreCase)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment