In a C# class library project, it is possible to globally subscribe to an event? For e.g. say the project contains 10 classes. If I had to subscribe to AppDomain.UnhandledException
event, I can have this line of code inside every class
AppDomain.CurrentDomain.UnhandledException += MyExceptionHandler;
Is there a way to declare this so that the code doesn't need to be repeated inside one dll?