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

What is regex c#?

686


How many types of constructors are there in c#?

658


In .Net, what is an assembly? Also explain the type of assembly.

709


Does constructor return any value in c#?

718


Difference between call by value and call by reference in C#?

752


What is array c#?

714


Why can't we use a static class instead of singleton?

662


What is iqueryable in linq?

649


In which order the constructor is called for an inherited class?

728


Define a partial class?

672


Name the property of the textbox which cannot be changed at runtime?

718


What is .cs file in c#?

700


What is the use of flag in c#?

693


What is constructor overloading in c#?

703


What is global namespace in c#?

704