adspace


When a Static Constructor called in .NET?

Answer Posted / Kishor Kumar Shukla

A static constructor in C# is called automatically before the first instance of a class is created. It cannot be explicitly called. The purpose of a static constructor is to initialize any static fields declared in the class.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write the .net syntax for 'while loop'?

1141