Reputation: 4203
I want to initialize my C# library as it loads by another process, is it possible and if so - how?
Upvotes: 5
Views: 2613
Reputation: 888047
No.
Instead, you can add a static constructor to your class, which will execute the first time that the class is used.
Upvotes: 7