Have a read through this
To enable basic LINQ functionality
- In a Visual Basic or C# project, click the Project menu, and then click Add Reference.
- In the Add Reference dialog box, click the .NET tab, scroll to System.Core.dll, and then click it. Click OK.
- Add a using directive or Imports statement for System.Linq to your source code file or project.