PostSharpAPI ReferencePost­Sharp.​Aspects.​AdvicesEvent<TDelegate>
Open sandboxFocus

Event<TDelegate> Class

Exposes the semantics of an event for use with the ImportMemberAttribute aspect extension.

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

Handler type (derived from System.Delegate).

Constructors

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

Properties

Name Description
Add

Gets a delegate enabling to invoke the add accessor of the imported event.

Remove

Gets a delegate enabling to invoke the remove accessor of the imported event.

See Also