Is there OnLoad event for C# libraries?
I want to initialize my C# library as it loads by another process, is it possible开发者_StackOverflow中文版 and if so - how?
No.
Instead, you can add a static constructor to your class, which will execute the first time that the class is used.
精彩评论