Geeks With Blogs
Deeksha Sharma
Quick facts about Anonymous type
  • Anonymous types are reference types derived formĀ system.objects.
  • Properties of the Anonymous type are read only.
  • If two Anonymous types have the same properties and same order, then the compiler treats it as the same type, but if both are in one assembly.
  • Anonymous type has method scope. If you want to return Anonymous type from the method, then you have to convert it in object type. But is not good practice.
Posted on Thursday, June 5, 2014 2:46 AM | Back to top


Comments on this post: facts of Anonymous Type

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Deeksha Sharma | Powered by: GeeksWithBlogs.net