Mention two cases where static constructors can be used?

 Posted by Tripati_tutu on 11/15/2010 | Category: C# Interview questions | Views: 3245 | Points: 40

• When the class is using a log file and the constructor is used to write data and enters into the file then we can use static constructor.

• It is also useful to call the LoadLibrary method by using constructors and when creating wrapper classes for unmanaged code.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response