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
Post a Comment