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 are the benefits of using windows services:

755


What is difference between a constant and read-only in C#?

730


Explain About web methods and its various attributes

754


What do you mean by delegates and explain different types of delegates?

731


What is type safe in c#?

669


What are the extension methods in c#?

685


What is the difference between Object and class adapters?

731


Any problem found in vs.et

778


Are all methods virtual in c#?

729


What is boxing? Explain its functionality?

740


Explain About Assembly in .NET, types of assemblies, their difference, How to register into GAC. How to generate the strong names & its use.

819


What is winforms c#?

654


What is the purpose of dictionary in c#?

645


Why delegate is used in c#?

674


What are the types of delegates in c#?

665