When static constructor is invoked?

Answer Posted / vibhu

.NET Run time does not specify when it will invoke a static
constructor. This is one caveat about the static
constructors. Though, what we could be certain of is that
it will be invoked before the first instance of the
corresponding class is created.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you know about WM_CHAR message?

650


How do I count the length of a string in c#?

581


How do I create a delegate/multicastdelegate?

635


What is the signature of a method?

581


What is the base class in .net from which all the classes are derived from?

586






What is event sourcing in c#?

601


How do you sort an array in c#?

584


can you allow a class to be inherited, but prevent the method from being over-ridden?

636


Define c# and list the features.

622


What is default access specifier for class in c#?

563


Where is the keyword void used?

633


What is the difference between yield and return?

541


What is before string in c#?

591


What do you mean by default constructor?

695


What is instantiating a class?

600