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 can you force derived classes to provide new method implementations for virtual methods?

710


What is the use of regex in c#?

708


What is called method in c#?

727


What is difference between field and property in c#?

648


What is parsing?

720


What operators can be used to cast from one reference type to another without the risk of throwing an exception?

710


What is a reference type c#?

725


What are methods c#?

668


Can a child class call the constructor of a base class?

767


What is the difference between Object and class adapters?

740


What is the difference between method and function in c#?

677


Does c# support multiple class inheritance?

835


Can constructor be protected?

674


How to reverse each word in a string using c#?

804


What is the difference between double and decimal in c#?

709