Skip to content

Instantly share code, notes, and snippets.

@mhutch
Created March 1, 2013 19:16
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 mhutch/d34207047242326f6a51 to your computer and use it in GitHub Desktop.
Save mhutch/d34207047242326f6a51 to your computer and use it in GitHub Desktop.
This:
<p class="@i">
Results in this:
WriteLiteral(" <p");
WriteAttribute("class", Tuple.Create(" class=\"", 86), Tuple.Create("\"", 96)
, Tuple.Create(Tuple.Create("", 94), Tuple.Create<System.Object, System.Int32>(i
, 94), false)
);
WriteLiteral(">\n");
Why not just:
WriteLiteral(" <p");
WriteAttribute(" class=\"", "\"", Tuple.Create<string,object,bool> ("", i, false));
WriteLiteral(">\n");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment