title: c# using DataTable AsEnumerable() on .NET 2
body: <p>I am trying to run the following code on a .net 2 winforms app:</p>
  
  <pre><code>DataTable dt = this.GetData(null, null, true, sql);
  
  DateTime minDate = (from f in dt.AsEnumerable()
                 select f.Field&lt;DateTime&gt;("Timestamp")).Min();
  </code></pre>
  
  <p>I am getting errors for the "using system.linq" and the ".AsEnumerable()". Is there any way I can resolve this to use AsEnumerable()? Or should I just abandon this method?</p>
  
  <p>Thanks!</p>