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