В asp.net mvc я всегда вижу встроенные html-помощники, у них всегда есть объект htmlAttirbutes.
Затем я обычно делаю new {@id = "test", @class= "myClass" }.
Как извлечь такой параметр в мои собственные html-помощники?
Как я использую "HtmlTextWriterTag" - это способ, которым я могу передать весь этот объект писателю, и он понял это или что?
Также как это работает с большими html-помощниками?
Как я делаю html-помощник, и он использует все эти теги.
Table
thead
tfooter
tbody
tr
td
a
img
Означает ли это, что я должен сделать атрибут html для каждого из этих тегов?