Skip to content

Instantly share code, notes, and snippets.

@hazzik
Created December 12, 2012 22:42
Show Gist options
  • Save hazzik/4272336 to your computer and use it in GitHub Desktop.
Save hazzik/4272336 to your computer and use it in GitHub Desktop.
public static class StringExtensions
{
public static bool Contains(this string self, string value, StringComparison comparisonType)
{
return self.IndexOf(value, comparisonType) != -1;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment