Created
October 1, 2024 17:08
-
-
Save bsimser/51561c04416b47937fc1cec42a1c292e to your computer and use it in GitHub Desktop.
Improved readability to string.IsNullOrEmpty
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 HasValue(this string value) | |
{ | |
return !string.IsNullOrEmpty(value); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment