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 anonymous class in c#?

525


What is session c#?

541


How can you reference current thread of the method ?

527


Can we have 2 main methods in c#?

492


What is a class c#?

483






Explain how to add controls dynamically to the form using c#.net.

562


Explain about c# language.

603


What is c# console application?

490


What does console readline do?

477


What is string concatenation?

485


Explanation on Generic?

558


What are the different types of assembly?

570


What is concrete class in c#?

478


What is polymorphism and its types in c#?

463


What are the principles of delegation?

494