Akshay Patel
When a Static Constructor is called in a Class?
By Akshay Patel in C# on Oct 25 2012
  • Sachin Kalia
    Apr, 2014 22

    It is called automatically before the first instance is created (means you have created an object of that class where you have declared static constructor) or any static members are referenced.Static members could be static constructor itself of static property also.

    • 0
  • Yogesh Sharma
    Nov, 2012 9

    A static constructor is used to initialize any static data, or to perform a particular action that needs performed once only. It is called automatically before the first instance is created or any static members are referenced.

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS