When a Static Constructor is called in a Class?



When a Static Constructor is called in a Class?..

Answer / Anubha Rastogi

A static constructor for a class is called automatically by the runtime when the class is first accessed before any instance of the class has been created. This means it runs before any code within the class is executed.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What is a private constructor? where will you use it?

6 Answers   Fulcrum Logic,


Why do you call it a process? What’s different between process and application in .net, not common computer usage, terminology?

1 Answers  


What is a float?

1 Answers  


What is Bubble Event ?

2 Answers   HCL,


Why are mutable structs evil?

1 Answers  


How to move to a state-related codebase?

1 Answers  


How does yield return work c#?

1 Answers  


What is the difference between readonly and const

4 Answers   Emphasis,


What sort algorithm does c# use?

1 Answers  


What is task parallel library?

1 Answers  


What is a multi line comment?

1 Answers  


what is the real use of interface in c#,other than that multiple inheritance is not possible

7 Answers  


Categories