When static constructor is invoked?

Answer Posted / deepthi

It is invoked only when the object for that particular
class is created for the first time

Is This Answer Correct ?    13 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the commonly used i/o classes?

528


What is a string c#?

485


What do you mean by thread safe in c#?

465


What is static variable in c#?

488


Can I use parseint?

476






what optimizations does the c# compiler perform when you use the /optimize+ compiler option?

591


What is difference between .net and c#?

460


How do you specify a custom attribute for the entire assembly (rather than for a class)?

522


What are the types of inheritance in c#?

493


what is an event? Define delegate?

524


What is the keyword used to prevent a class from being inherited by another class?

663


What do you understand by 'access specifiers' in C#?

518


What do you mean by default constructor?

605


Can I define a type that is an alias of another type (like typedef in c++)?

532


How long will it take to learn c#?

521