Explain two different scenarios where the Static Constructors can be used ?
Interview question and answer by: Chvrsri
| Posted on: 3/23/2011 | Category: C# Interview questions
| Views: 2901 | | 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.
| Alert Moderator
Found interesting? Add this to: