Framework-Class-Library-Extension icon indicating copy to clipboard operation
Framework-Class-Library-Extension copied to clipboard

InitializeEventHandlers aspect does not work for events within static classes.

Open Whathecode opened this issue 13 years ago • 1 comments

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.

Whathecode avatar Nov 15 '12 12:11 Whathecode

Asked whether this is possible on PostSharp support.

Whathecode avatar Nov 15 '12 13:11 Whathecode