title: How to use Expression to build an Anonymous Type?
body: <p>In C# 3.0 you can use Expression to create a class with the following syntax:</p>
  
  <pre><code>var exp = Expression.New(typeof(MyClass));
  var lambda = LambdaExpression.Lambda(exp);
  object myObj = lambda.Compile().DynamicInvoke();
  </code></pre>
  
  <p>But how do you use Expression to create an Anonymous class?</p>
  
  <pre><code>//anonymousType = typeof(new{ Name="abc", Num=123});
  Type anonymousType = Expression.NewAnonymousType???  &lt;--How to do ?
  var exp = Expression.New(anonymousType);
  var lambda = LambdaExpression.Lambda(exp);
  object myObj = lambda.Compile().DynamicInvoke();
  </code></pre>