Class SerializedEventDefinition
- Namespace
- AsmResolver.DotNet.Serialized
- Assembly
- AsmResolver.DotNet.dll
Represents a lazily initialized implementation of EventDefinition that is read from a .NET metadata image.
public class SerializedEventDefinition : EventDefinition, IHasSemantics, IMemberDefinition, IMemberDescriptor, IFullNameProvider, INameProvider, IModuleProvider, IImportable, IHasCustomAttribute, IMetadataMember, IOwnedCollectionElement<TypeDefinition>
- Inheritance
-
SerializedEventDefinition
- Implements
- Inherited Members
- Extension Methods
Constructors
SerializedEventDefinition(ModuleReaderContext, MetadataToken, in EventDefinitionRow)
Creates a event definition from a event metadata row.
public SerializedEventDefinition(ModuleReaderContext context, MetadataToken token, in EventDefinitionRow row)
Parameters
context
ModuleReaderContextThe reader context.
token
MetadataTokenThe token to initialize the event for.
row
EventDefinitionRowThe metadata table row to base the event definition on.
Methods
GetCustomAttributes()
Obtains the list of custom attributes assigned to the member.
protected override IList<CustomAttribute> GetCustomAttributes()
Returns
- IList<CustomAttribute>
The attributes
Remarks
This method is called upon initialization of the CustomAttributes property.
GetDeclaringType()
Obtains the declaring type of the event definition.
protected override TypeDefinition? GetDeclaringType()
Returns
- TypeDefinition
The declaring type.
Remarks
This method is called upon initialization of the DeclaringType property.
GetEventType()
Obtains the event type of the event definition.
protected override ITypeDefOrRef? GetEventType()
Returns
- ITypeDefOrRef
The event type.
Remarks
This method is called upon initialization of the EventType property.
GetName()
Obtains the name of the event definition.
protected override Utf8String? GetName()
Returns
- Utf8String
The name.
Remarks
This method is called upon initialization of the Name property.
GetSemantics()
Obtains the methods associated to this event definition.
protected override IList<MethodSemantics> GetSemantics()
Returns
- IList<MethodSemantics>
The method semantic objects.
Remarks
This method is called upon initialization of the Semantics property.