Skip to content

Instantly share code, notes, and snippets.

@einarwh
Created June 20, 2012 17:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save einarwh/2961100 to your computer and use it in GitHub Desktop.
Save einarwh/2961100 to your computer and use it in GitHub Desktop.
Ugly transformation using explicit conversion.
Func<string, string> nested =
s => s.Tag("td").Colspan("2")
.Width("100")
.ToString()
.Tag("tr").ToString()
.Tag("table").Cellpadding("10")
.Border("1");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment