Does anyone know if there\'s a way to hook into an \"OnLoad\" event to run some operations when an assembly loads?
Specifically, I am creating a plug-in for an appli
C# does not provide a way to do that but the underlying IL code does via module initializers. You can use tools like Fody/ModuleInit to turn a specially named static C# class to run as a module initializer which will be run when your dll is loaded.