When static constructor is invoked?

Answer Posted / abhay k pandey

Static constructors can invoke mainly at two ocasions
1. Just before the first instance of the class is created [
in case this static contructor is there in non static class]
2. At the time any static member is accessed [ in case of
either static or non static classes ]

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I create a .exe file?

489


What is orm in c#?

481


Can properties be overloaded in c#?

554


explain the nature of the assembly work?

2105


Does google use c#?

522






What is the use of ispostback in c#?

480


Expalin the way you implement inheritance by using VB.NET/C#?

536


What is difference between the "throw" and "throw ex" in .net?

492


What's the difference between the debug class and trace class? Documentation looks the same.

512


What is array and arraylist?

548


What does string intern do?

493


Which is faster hashtable or dictionary?

511


What is foreach loop in c#?

540


What is a singleton unity?

564


What is overloading with example?

505