I am trying to use replicate the syntax for most of the standard HtmlHelpers where an object is used to add Html attributes to a generated tag.
I would like to have something like:
<%: Html.MyCustomHelper("SomeValue", new { id="myID", @class="myClass" })%>
How do I access the keys of that new object so I can add attributes from the view?
Would this use reflection? I've heard that word thrown around a bit, but I'm not familiar with it.