Monday, 7 September 2015

Static constructor do not have parameter

How can we pass parameters to Static Constructors?



As MSDN says, A static constructor is called automatically to initialize the class before the first instance is created. Therefore you can't send it any parameters.
If the CLR must call a static constructor how will it know which parameters to pass it?

No comments:

Post a Comment