I have tried using the same in Visual Studio 2015 and it works. Just make sure that you are referencing the
System.Core.dll library in your project, that is where
System.Linq
is declared in.
Double-click References and check if
System.Core is present in the list, if not then Right-click on Reference, and select Add Reference. From the window opened, select System.Core and click Add. That way, now if you try to use the namespace (hopefully by
using System.Linq;
) it would work.
For more about this namespace please read:
https://msdn.microsoft.com/en-us/library/system.linq(v=vs.111).aspx[
^]