Created
November 30, 2012 19:48
-
-
Save aaronlerch/4178100 to your computer and use it in GitHub Desktop.
Ahhhh, much better.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class StringExtensions | |
{ | |
public static bool Is(this string value, string compareTo) | |
{ | |
return value.Is(compareTo, StringComparison.OrdinalIgnoreCase); | |
} | |
public static bool Is(this string value, string compareTo, StringComparison stringComparison) | |
{ | |
return String.Equals(value, compareTo, stringComparison); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment