title: Returning anonymous type in C#
body: <p>I have a query that returns an anonymous type and the query is in a method. How do you write this:</p>
  
  <pre><code>public "TheAnonymousType" TheMethod(SomeParameter)
  {
    using (MyDC TheDC = new MyDC())
    {
       var TheQueryFromDB = (....
                             select new { SomeVariable = ....,
                                          AnotherVariable = ....}
                             ).ToList();
  
        return "TheAnonymousType";
      }
  }
  </code></pre>