c# - ASP.NET MVC: Why is `ToMvcHtmlString` not public? -


I'm trying to type my own little HTML assistant which works like DropDownListFor Is, but who is not suffering from that which I have encountered before. Let's not discuss that DropDownListFor is flawed & mdash; It is not what this question is about.

Anyway, what is the reason that MVC people ToMvcHtmlString is not internal and public?

My guess is that you have to encourage it to use but yes, I thought it myself And I have written a duplicate TOMVCt string extension in my own assistants.

MvcHtmlString is, IIRC, just fix their compatibility so MVC 2 will be useful for both .NET 3.5 and 4 - but still use it in your own code.


Comments

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -