Answer:
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