p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   C# (http://p2p.wrox.com/forumdisplay.php?f=22)
-   -   Arguments cannot be inferred from usage? (http://p2p.wrox.com/showthread.php?t=86748)

fullingdale February 22nd, 2012 06:53 AM

Arguments cannot be inferred from usage?
In code, I have the following line:

Html.EditorFor(model => model.COLUMN_NAME)

Which is throwing the following in my Errors List

The type arguments for method 'System.Web.Mvc.Html.EditorExtensions.EditorFor<TM odel,TValue>(System.Web.Mvc.HtmlHelper<TModel>, System.Linq.Expressions.Expression<System.Func<TMo del,TValue>>)' cannot be inferred from the usage. Try specifying the type arguments explicitly

Any ideas why this would appear?

Seems to be fairly recent and I am not sure what's caused it, but it's on every one of the HTML. objects

All times are GMT -4. The time now is 07:57 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.