Framework-Class-Library-Extension
Framework-Class-Library-Extension copied to clipboard
InitializeEventHandlers aspect does not work for events within static classes.
While adding several new unit tests for the InitializeEventHandlers aspect, some unkown issues where resolved, except for the StaticEventHandlersTest() which currently fails.
A static event would need to be initialized from the static constructor. PostSharp 2.1 doesn't seem to be able to insert a static constructor at the moment. Only when a static constructor is already present, this is currently possible.
Asked whether this is possible on PostSharp support.