title: C# list of anonymous type as parameter
body: <p>There is a way to declare a method with a collection of anonymous type as parameter?</p>
  
  <p>for example somethings like this pseudo syntax :</p>
  
  <pre><code>private void dosomething ( List&lt;class with { string Name, string Lastname, int Age }&gt; persons) {
  ... 
  }
  </code></pre>
  
  <p>To avoid creating a single use class.</p>
  
  <p><strong>UPDATE</strong>
  What I want is to avoid the definition of a class that I will use only for passing data to this method.</p>