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 the difference between method and constructor in c#?

464


what are the Disadvantages of vb

604


What is gac? How to put assembly in gac?

565


List out two different types of errors in c#?

541


What is the difference between ienumerable and iqueryable?

455






What is the use of table aliases?

500


Is c# scripting language?

511


what is .NET framework architecture ??

1571


What is a concrete class in c#?

540


When do we generally use destructors to release resources?

527


In which way you can convert a value-type to a reference-type?

544


What is the difference between list and ilist in c#?

493


What is the purpose of the integer parse method the decimal parse method?

531


Explain why do I get an error (cs1006) when trying to declare a method without specifying a return type?

480


What are c# i/o classes?

577