Frage

Folks,

As of today should I introduce T4MVC in my project or use strongly typed goodness from MvcContrib?

return RedirectToAction(MVC.MyController.MyAction());

or

return RedirectToAction<MyController>(c => c.MyAction());

Trying to stick with standard/mainstream and stay up to date.

I know, there are Q&A on this site, I am interested to hear what is latest & greatest, rather than what was 2 years ago.

Thanks in advance.

War es hilfreich?

Lösung

Both techniques are acceptable today and I haven't heard that one would be deprecated. T4MVC has the advantage of performing better which is one of the reasons why those strongly typed helpers taking lambda expressions are actually not part of the ASP.NET MVC core.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top