We all know that when we create an anonymous class like this:
var Employee = new { ID = 5, Name= \"Prashant\" };
...at run time it will be of t
Actually, if you're not afraid of getting extremely nitty gritty, you could use TypeBuilder to build your own runtime type based on your anonymous type, which will allow you to specify a name for the type. Of course, it is much easier to just declare a class as almost everyone else in this thread suggested, but the TypeBuilder way is far more exciting. ;)
TypeBuilder