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

What is a derived class in c#?

770


How can I create a process that is running a supplied native executable (e.g., Cmd.exe)?

838


Explain About Postback

762


What is the difference between abstract and abstraction?

678


what is .NET framework architecture ??

1793


List down the access modifiers available in c#?

682


Is c and c# the same?

714


What is helper method in c#?

700


What is Garbage Collection in .Net?

831


What is Implementation inheritance and interface inheritance?

751


Why do we need constructor in c#?

729


What is binary search tree in data structure?

710


2. What happened when BO object has been called?

1796


what are the contents of an assembly ?

789


What can you do as a .net developer?

719