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

explain the three services model commonly know as a three-tier application.

556


what is inheritance and an example in vb.net and c# of when you might use it?

534


What is asax file in c#?

576


Can you inherit from a sealed class?

504


How many root nodes are there in an xml document?

457






What are native methods?

493


What is difference between array and arraylist c#?

470


What is an actual parameter?

501


What will be the output of the following code?

518


What is the property of a class in c#?

505


Why are mutable structs evil?

555


What is var c#?

504


Why data types are important?

539


What is getenumerator?

468


What is variable and its classification?

538