MetalamaAPI documentationPost­Sharp API migrationPost­Sharp.​Aspects.​AdvicesEvent<TDelegate>
Open sandboxFocus

Event<TDelegate> Class

In PostSharp, this class allowed the run-time code of the aspect to access an event in the target code. In Metalama, no run-time helper is required because the template directly generates run-time code. Use invokers (e.g. IEvent.Add(Object)) to generate run-time code for any event.

Inheritance
System.Object
Event<TDelegate>
Namespace: PostSharp.Aspects.Advices
Assembly: Metalama.Migration.dll
Syntax
public sealed class Event<TDelegate> : Object
Type Parameters
Name Description
TDelegate

Constructors

Name Description
Event(EventAccessor<TDelegate>, EventAccessor<TDelegate>)

Properties

Name Description
Add
Remove