When static constructor is invoked?

Answer Posted / sujai cn

A static constructor is executed when that class is loaded
in to memory for the first time . i.e., when ever an object
is created or a static method is invoked using class name.

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 mark a method obsolete?

675


What does the initial catalog parameter define in the connection string?

573


What do u mean by delegation of authority?

623


What is delegates in c#?

592


How many dimensions can an array have?

538






what is the purpose of using statement in c#

621


How long can a string be c#?

575


What is difference between il and dll ?

614


What is using in c#?

553


Is static thread safe?

579


If the original method is not static you can declare an override method to be static or not?

568


What can you do as a .net developer?

573


What is generic collection in c#?

584


What are the advantages of using assemble language programming?

606


Explain the difference between boxing and unboxing.

630