This is probably a silly question, but I am trying to stuff an anonymous object in ViewBag like so:
ViewBag.Stuff = new { Name = \"Test\", Emai
Essentially the issue is that anonymous types are generated as internal (see answer), making hard typed references to the object's property impossible from the View. This article provides a more detailed explanation:
http://www.heartysoft.com/anonymous-types-c-sharp-4-dynamic
It is possible to accomplish with the use of a Dynamic Anonymous wrapper class (@Dakill's answer), but gets ugly fast and should make a programmer question why he/she would do so.