What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 8757 |  Welcome, Guest!   Register  Login
 Home > Interview Questions > ASP.NET Interview Questions > What are anonymous types? ... ...

What are anonymous types?

Interview question and answer by: Gopesh9 | Posted on: 8/24/2012 | Category: ASP.NET Interview questions | Views: 653 | | Points: 40


Answer:

Annymous types are Data types that are Declared by the compiler, rather than trough the explicit class definition.

var n = { number = 10, message = "hi"};

Console.WriteLine(n.number + n.message);

Asked In: Many Interviews | Alert Moderator 
Found interesting? Add this to:


 Responses

Posted by: Vijusah2010 | Posted on: 27 Sep 2012 06:38:13 AM | Points: 10 | Alert Moderator 

var n =new { number = 10, message = "hi"};
Console.WriteLine(n.number + n.message);


>> Write Response - Respond to this post and get points

Even more ... | Submit Interview Questions and win prizes!

More Interview Questions from Gopesh9

Even more ... | Submit Interview Questions and win prizes!


About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/24/2013 12:46:18 AM