How can I run a static constructor?

Posted by mafutrct on Stack Overflow See other posts from Stack Overflow or by mafutrct
Published on 2010-04-16T15:09:45Z Indexed on 2010/04/16 15:13 UTC
Read the original article Hit count: 359

Filed under:
|
|

I'd like to execute the static constructor of a class (i.e. I want to "load" the class) without creating an instance. How do I do that?

Bonus question: Are there any differences between .NET 4 and older versions?

© Stack Overflow or respective owner

Related posts about .NET

Related posts about c#