Metalama 1.0 / / Metalama Documentation / Aspect API / Metalama.​Framework.​Code / IEvent

Interface IEvent

Represent an event.

Namespace: Metalama.Framework.Code
Assembly: Metalama.Framework.dll
Syntax
public interface IEvent : IMemberWithAccessors, IMember, IMemberOrNamedType, INamedDeclaration, IDeclaration, IDisplayable, IDiagnosticLocation, ICompilationElement, IMeasurable, IHasType

Properties

Name Description
AddMethod

Gets the method implementing the add semantic. In case of field-like events, this property returns an object that does not map to source code but allows to add aspects and advice as with a normal method.

ExplicitInterfaceImplementations

Gets a list of interface events this event explicitly implements.

Invokers

Gets an object that allows to add or remove a handler to or from the current event.

OverriddenEvent

Gets the base event that is overridden or hidden by the current event.

RaiseMethod

Gets an object that represents the raise semantic and allows to add aspects and advice as with a normal method.

RemoveMethod

Gets the method implementing the remove semantic. In case of field-like events, this property returns an object that does not map to source code but allows to add aspects and advice as with a normal method.

Signature
Type

Gets the type of the event, i.e. the type of the delegate.

Methods

Name Description
ToEventInfo()

Gets an EventInfo that represents the current event at run time.

Extension Methods

GenericExtensions.GetOriginalDefinition(IEvent)
GenericExtensions.ForTypeInstance(IEvent, INamedType)
SymbolExtensions.GetSymbol(IEvent)