Open sandboxFocus

Class Event<TDelegate>

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(dynamic?)) to generate run-time code for any event.

Inheritance
Event<TDelegate>
Namespace: PostSharp.Aspects.Advices
Assembly: Metalama.Migration.dll
Syntax
[Obsolete("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'.'IEventInvoker.Add(dynamic?)') to generate run-time code for any event.", false)]
public sealed class Event<TDelegate>
Type Parameters
Name Description
TDelegate

Constructors

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

Properties

Name Description
Add
Remove