Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static bool EqualsIgnoreCase(this string a, string b)
- {
- if (a == null && b == null)
- return true;
- if (a != null && b == null)
- return false;
- if (a == null && b != null)
- return false;
- return string.Equals(a, b, StringComparison.InvariantCultureIgnoreCase);
- }
Advertisement
Add Comment
Please, Sign In to add comment