LINQ requires .NET 3.5 or higher (or .NET 2.0 using LINQBridge).
Add a reference to System.Core, if it hasn't been added yet.
At the top of the file, import the namespace:
using System; using System.Linq;
Imports System.Linq