title: How can I pass an anonymous type to a function?
body: <p>I have tables with either many columns or a column with a large data set (XML doc), I need to load information from the table quickly (status info) into a class. I notices that Linq allows you to select columns as such...:</p>
  
  <p>Using an anonymous type:</p>
  
  <pre><code>var query = (from name in some.Table
              select new { ColumnName = name.ColumnName });
  
  MapEntToOb( query)
  private void MapEntToObj( var query)          &lt;------ doesn't work! 
  </code></pre>
  
  <p>I want to call a routine to do stuff (mapping) using the query, but cannot pass it unlike the following... </p>
  
  <pre><code>LinqClass.Table query =  from name in some.Table
              select;
  
  MapEntToObj( query)
  ...
  private void MapEntToObj( LinqClass.Table query)
  </code></pre>
  
  <p>for now I'll move the mapping into local scope, but I would like to have a clean consistant design for all by data mapping.</p>