In TagBuilder and other classes I can write something like:
var tr = new TagBuilder("HeaderStyle"){InnerHtml = html, [IDictionary Attributes]}
but I don't know how to pass the IDictionary parameter.
How can I do that on the fly? Without creating a Dictionary variable.
EDIT TagBuilder is an example, there are other classes that accept a parameter IDictionary as well. The question is about the generic case.