title: ExpandoObject, anonymous types and Razor
body: <p>I want to use an ExpandoObject as the viewmodel for a Razor view of type <code>ViewPage&lt;dynamic&gt;</code>. I get an error when I do this</p>
  
  <pre><code>ExpandoObject o = new ExpandoObject();
  o.stuff = new { Foo = "bar" };
  return View(o);
  </code></pre>
  
  <p>what can I do to make this work?</p>