title: Select distinct from dataTable.AsEnumerable
body: <p>I have a data table dtStudent with structure as follows</p>
  
  <pre><code>Id | Name | Class | RoomNum | Subject
  ---------------------------------------
  1  | ABC  | 5     | 10      | Maths
  1  | ABC  | 5     | 10      | Science
  1  | ABC  | 5     | 10      | English
  </code></pre>
  
  <p>As You can see, it contains different data for subject column only.</p>
  
  <p>Now, I want to get the value for <code>class</code> and <code>RoomNum</code> column. As the values are same for all rows, I am using following-</p>
  
  <pre><code>var stdDetails = from r in DtTable.AsEnumerable()
  select new
      {
          Class = r.Field&lt;string&gt;("Class").ToString(),
          RoomNum = r.Field&lt;string&gt;("RoomNum").ToString()
      };
  </code></pre>
  
  <p>What to do next? I need the values 5 and 10. Any help?</p>