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

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -