title: How to pass anonymous types as parameters?
body: <p>How can I pass anonymous types as parameters to other functions? Consider this example:</p>
  
  <pre><code>var query = from employee in employees select new { Name = employee.Name, Id = employee.Id };
  LogEmployees(query);
  </code></pre>
  
  <p>The variable <code>query</code> here doesn't have strong type. How should I define my <code>LogEmployees</code> function to accept it?</p>
  
  <pre><code>public void LogEmployees (? list)
  {
      foreach (? item in list)
      {
  
      }
  }
  </code></pre>
  
  <p>In other words, what should I use instead of <code>?</code> marks.</p>