Explain two different scenarios where the Static Constructors can be used ?

 Posted by Chvrsri on 3/23/2011 | Category: C# Interview questions | Views: 6238 | Points: 40

These are the 2 different scenarios where the Static Constructor can be used :

When ever the Class uses the log file and a constructor is used to write some contents into this file.

These Static Constructors are also used when we create Wrapper Classes for the un-managed code and when the constructor can call the load library method.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response