Inline HTML Syntax for Helpers in ASP.NET MVC
- by kouPhax
I have a class that extends the HtmlHelper in MVC and allows me to use the builder pattern to construct special output e.g.
<%=
Html.FieldBuilder<MyModel>(builder => {
builder.Field(model => model.PropertyOne);
builder.Field(model => model.PropertyTwo);
builder.Field(model => model.PropertyThree);
…