title: c# linq question
body: <p>I have a data table and I want to select all distinct names from the result. I wrote following linq query for it.</p>
  
  <pre><code>var distinctRows = (from DataRow myDataRow in myDataTable.Rows 
                      select new { col1 = myDataRow ["Name"]}).Distinct();
  </code></pre>
  
  <p>Now how can I iterate through distinctRows? Seems like I cannot do <code>foreach(DataRow Row in distinctRows)</code>, It gives me "Cannot convert type 'AnonymousType#1' to 'System.Data.DataRow'" error</p>