Hi,
I've recently converted an app from .net 2.0 to 3.5 but I don't see any extension methods... what am I doing wrong? Or what else should I do besides changing the target framework from 2.0 to 3.5 in project settings?
Hi,
I've recently converted an app from .net 2.0 to 3.5 but I don't see any extension methods... what am I doing wrong? Or what else should I do besides changing the target framework from 2.0 to 3.5 in project settings?
Extension method, is feature of .net 3.5. extension methods are some thing that you need to create !!!
http://stackoverflow.com/questions/403539/what-are-extension-methods
refer this link
Extension methods appear based on the imported namespaces try adding
using System.Linq;
to the top of your files. As Jon says you'll also need add a reference to System.Core.dll assembly.
You not only need to add the using directive for System.Linq
as SillyMonkey suggested, but you also need to have a reference to the System.Core
assembly if you want to use LINQ.