MemberAdapterFactory.CreateEventMetadata Method

Namespace
Kampute.DocToolkit.Metadata.Adapters
Assembly
  • Kampute.DocToolkit.dll

Definition

Creates the event metadata for the specified event within the given declaring type.
public virtual IEvent CreateEventMetadata(IType declaringType, EventInfo eventInfo)

Parameters

declaringType IType
The type metadata that contains the event.
eventInfo EventInfo
The reflection event to get metadata for.

Returns

IEvent
A metadata representation of the specified event.

Exceptions

ArgumentNullException
Thrown when declaringType or eventInfo is null.
ArgumentException
Thrown when eventInfo does not belong to declaringType.