PostSharp 6.5 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Aspects Namespace / Event­Interception­Args Class / Event­Interception­Args Properties / Event­Interception­Args.​Event Property

EventInterceptionArgs.Event Property

Gets the event to which the current aspect has been applied.

Namespace:  PostSharp.Aspects
Assembly:  PostSharp (in PostSharp.dll) Version: 6.5.17.0 (6.5.17.0)
Syntax
C#
public EventInfo Event { get; set; }

Property Value

Type: EventInfo
Remarks
Note Note
Using this property causes the aspect weaver to generate code that has non-trivial runtime overhead. Avoid using this property whenever possible. One of the possible solution is to use compile-time initialization of aspect instances and to make use of reflection only at build time.
See Also