title: How can I make DataTable enumerable?
body: <p>I cannot use AsEnumerable() on DataTable, I'm using C# 3 but I'm just targeting 2.0 framework (LINQ capability is courtesy of <a href="http://code.google.com/p/linqbridge/" rel="nofollow noreferrer">LINQBridge</a>).  Is there any way I can make DataTable enumerable without using Select() ?</p>
  
  <pre><code>bool isExisting = (bdsAttachments.DataSource as DataTable).Select().Any(xxx =&gt; (string)dr["filename"] == filename);
  </code></pre>
  
  <p>Update:</p>
  
  <p>I wanted it to make it look like this:</p>
  
  <pre><code>bool isExisting = (bdsAttachments.DataSource as DataTable).AsEnumerable().Any(xxx =&gt; (string)dr["filename"] == filename);
  </code></pre>
  
  <p>I'm getting an inkling that the Select method of DataTable returns a copy, I'm thinking to just use AsEnumerable, the problem is I'm just targeting 2.0 framework, System.Data.DataSetExtensions is not available</p>
  
  <p>BTW, i tried this: <a href="http://cs.rthand.com/blogs/blog_with_righthand/archive/2006/01/15/284.aspx" rel="nofollow noreferrer">http://cs.rthand.com/blogs/blog_with_righthand/archive/2006/01/15/284.aspx</a>, but has compilation errors.</p>