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

EventAccessor<TDelegate> Class

In PostSharp, this delegate 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 IEvent. to generate run-time code for any event.

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

Constructors

Name Description
EventAccessor(Object, IntPtr)

Methods

Name Description
BeginInvoke(TDelegate, AsyncCallback, Object)
EndInvoke(IAsyncResult)
Invoke(TDelegate)