title: Getting the field names from a Linq To Sql object
body: <p>I have a Linq expression which I'd like to insert to a ADO.NET datatable.
  I would like to know the name of the fields from the query in order to set the datatable name.
  Here is an example of my code:</p>
  
  <pre><code>var result=from item in context.table
             select new{
                  field1=... ,
                  field2=... ,
                  field3=...
             };
  </code></pre>
  
  <p>What I'd like to do is to set the tables name.</p>
  
  <pre><code>Datatable.Columns.Add("field1"); .. etc
  </code></pre>
  
  <p>I tried to do it manually but I believe there should be an elegant solution for it.</p>
  
  <p>Thanks</p>