What is anonymous class in c#?



What is anonymous class in c#?..

Answer / Sachin Kumar Singh

Anonymous classes in C# are classes without a name. They are used when you need to create a temporary class for one-time use, such as when working with LINQ query results. Anonymous classes can only have automatic properties and cannot be inherited or instantiated outside the containing method.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

How objects are stored in memory?

1 Answers  


What is the difference between TypeOf and GetType?

4 Answers   Syntel,


Can we inherit abstract class in c#?

1 Answers  


Is c# front end or back end?

1 Answers  


What is difference between ilist and list in c#?

1 Answers  


What is the name of c# compiler?

1 Answers  


What is the components of window?

1 Answers  


Explain how can I get around scope problems in a try/catch?

1 Answers  


what is a callback function?

4 Answers  


Does a class need a constructor c#?

1 Answers  


What is the difference between these statements obj=null and obj.dispose()

4 Answers   Fulcrum Logic,


What is a proxy of the server object in .NET Remoting?

1 Answers   BirlaSoft,


Categories