As the title suggests, I'm wondering whether I should unsubscribe from static events that I have subscribe to inside a static class. I've read about the memory leak issues that static events can cause but as far as I understand, once the application exits, all resources should be freed automatically. Does that count for the static events too or should I manually implement a way to unsubscribe from them before the application exits? The static event is going to be in a static class so the class' lifetime should be the same as the application's.
Thanks in advance!
P.S. I am aware that static events ought to be avoided whenever possible, but the event in question is Microsoft.Win32.SystemEvents.DisplaySettingsChanged.