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
No, there is no way to give a meaningful type name to these classes as you've declared them. Anonymous Types are just that, anonymous. There is no way to explicitly "name" the type in code without resorting to very ugly hacks.
If you really need to give the type a name you will need to explicitly declare and use a new type with the properties you need.