Skip to content

Instantly share code, notes, and snippets.

@cartermp
Last active November 6, 2015 22:11
Show Gist options
  • Save cartermp/33687e138c9d5119bbb7 to your computer and use it in GitHub Desktop.
Save cartermp/33687e138c9d5119bbb7 to your computer and use it in GitHub Desktop.
XML To Markdown testing

WuTang4Eva

Extensions

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.

ToCsv1(System.Collections.Generic.IEnumerable{0})

Serializes a sequence of items into a CSV.

Name Description
source The source sequence to serialize.
Returns: A sequence of strings, where each item is a row in the CSV.

Uses deferred execution.


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