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 is difference between list and ilist in c#?

660


Does unity require coding?

763


What is dll file in c#?

744


Can abstract class have constructor?

694


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

709


Which is faster dictionary or hashtable?

668


Where is the main method in c#?

765


Can main method be final?

697


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

732


Why are mutable structs evil?

741


What is a streamwriter in c#?

711


What are PE(Portable Executable)?

748


Describe the process of “exception handling implementation” in c#?

766


What are variables in c#?

735


Why is dll used?

784