Friday, 15 February 2013

asp.net mvc - Why does intellisense prefer to "autocomplete" with dynamic version of method instead of strongly typed version? -



asp.net mvc - Why does intellisense prefer to "autocomplete" with dynamic version of method instead of strongly typed version? -

i trying utilize webgrid first time, came upon this article (and this nuget package made same guy) should provide typed column method.

so this... :

public webgridcolumn column( string columnname = null, string header = null, func<t, object> format = null, string style = null, bool cansort = true)

...should replace this:

public webgridcolumn column( string columnname = null, string header = null, func<dynamic, object> format = null, string style = null, bool cansort = true)

... long instantiate webgrid<t> instead of webgrid.

the problem is, whenever seek utilize column method, intellisense's code completion still insists on dynamic version, not helping @ , defeating entire purpose of installing package. why happening , how can create utilize of intellisense without having manually cast (func<t, object>)format?

asp.net-mvc intellisense strong-typing dynamic-typing mvccontrib-grid

No comments:

Post a Comment