you must set a reference to System.Linq.dll the before loading the namespaces, but may be you need others dlls too.
Example:
//$reference System.Data.dll
//$reference System.Linq.dll
//$reference System.XML.dll
using System;
using System.Data;
using System.Linq;
|