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
declaringTypeIType- The type metadata that contains the event.
eventInfoEventInfo- The reflection event to get metadata for.
Returns
- IEvent
- A metadata representation of the specified event.
Exceptions
- ArgumentNullException
- Thrown when
declaringTypeoreventInfoisnull. - ArgumentException
- Thrown when
eventInfodoes not belong todeclaringType.
