adspace


What is anonymous class in c#?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you inherit a class into other class in c#?

993


How to assign Null value to Var?

1063


What is expression tree in c#?

998


Which namespaces are necessary to create a localized application?

1142


Why can't we use a static class instead of singleton?

954


What is an abstract class c#?

969