Skip to content

Instantly share code, notes, and snippets.

@cartermp
Last active August 29, 2015 14:11
Show Gist options
  • Save cartermp/fd96d12dec404b9bc95e to your computer and use it in GitHub Desktop.
Save cartermp/fd96d12dec404b9bc95e to your computer and use it in GitHub Desktop.
More in-depth sample

WuTang4Eva

StringExtensions

Provides extension methods for semantic string support.


IsNullOrWhiteSpace(System.String)

Semantic wrapper around IsNullOrWhiteSpace().

Name Description
source: The source string
Returns: Answers yes if a string is null, empty, or whitespace.

HasContent(System.String)

Semantic wrapper around the inverse of IsNullOrWhiteSpace().

Name Description
source: The source string
Returns: Answers yes if a string has any non-whitespace content.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment