title: Declaring a LIST variable of an anonymous type in C#
body: <p>I'm working with LINQ to SQL with ASP.NET 4 and C#. I've created a LINQ query that results in a new LIST (ie. ToList()). The returned LIST is of an ANONYMOUS type, because it's being created dynamically by the query. I want to be able to declare a variable at the page level in the code behind so I can use it in other functions and also on the front page using '&lt;%= %>'. </p>
  
  <p>Visual Studio tells me that the result is of an anonymous type, but gives me the classes names, for example: {CLASS1, CLASS2}.</p>
  
  <p>How can I declare the variable of this anonymous type?</p>