20 base(context, type.ContainingModule, type, underlyingEvent)
22 _underlyingEvent = underlyingEvent ??
throw new ArgumentNullException(nameof(underlyingEvent));
27 public global::System.Reflection.EventAttributes
Attributes => (global::System.Reflection.EventAttributes)_underlyingEvent.Attributes;
39 return _underlyingEvent.GetAddMethod() is { } m ? ResolveMethodSymbol(m) :
null;
44 return _underlyingEvent.GetAddMethod(nonPublic) is { } m ? ResolveMethodSymbol(m) :
null;
49 return ResolveMethodSymbols(_underlyingEvent.GetOtherMethods());
54 return ResolveMethodSymbols(_underlyingEvent.GetOtherMethods(nonPublic));
59 return _underlyingEvent.GetRaiseMethod() is { } m ? ResolveMethodSymbol(m) :
null;
64 return _underlyingEvent.GetRaiseMethod(nonPublic) is { } m ? ResolveMethodSymbol(m) :
null;
69 return _underlyingEvent.GetRemoveMethod(nonPublic) is { } m ? ResolveMethodSymbol(m) :
null;
74 return _underlyingEvent.GetRemoveMethod() is { } m ? ResolveMethodSymbol(m) :
null;
IKVM.Reflection.EventInfo EventInfo
global::System.Reflection.EventAttributes Attributes
Gets the attributes for this event.
IkvmReflectionEventSymbol(IkvmReflectionSymbolContext context, IkvmReflectionTypeSymbol type, EventInfo underlyingEvent)
Initializes a new instance.
IMethodSymbol? GetRaiseMethod(bool nonPublic)
When overridden in a derived class, returns the method that is called when the event is raised,...
IMethodSymbol? GetRemoveMethod(bool nonPublic)
When overridden in a derived class, retrieves the IMethodSymbol object for removing a method of the e...
IMethodSymbol? GetRemoveMethod()
Returns the method used to remove an event handler delegate from the event source.
IMethodSymbol? GetAddMethod()
Returns the method used to add an event handler delegate to the event source.
ITypeSymbol? EventHandlerType
Gets the object of the underlying event-handler delegate associated with this event.
IMethodSymbol? AddMethod
Returns the method used to add an event handler delegate to the event source.
IMethodSymbol[] GetOtherMethods()
Returns the public methods that have been associated with an event in metadata using the ....
IMethodSymbol? GetAddMethod(bool nonPublic)
Returns the method used to add an event handler delegate to the event source, specifying whether to r...
bool IsSpecialName
Gets a value indicating whether the IEventSymbol has a name with a special meaning.
IMethodSymbol[] GetOtherMethods(bool nonPublic)
Returns the methods that have been associated with the event in metadata using the ....
IMethodSymbol? RaiseMethod
Returns the method that is called when the event is raised.
IMethodSymbol? RemoveMethod
Returns the method used to remove an event handler delegate from the event source.
IMethodSymbol? GetRaiseMethod()
Returns the method that is called when the event is raised.
Holds references to symbols derived from System.Reflection.
Discovers the attributes of an event and provides access to event metadata.
Discovers the attributes of a method and provides access to method metadata.
Represents type declarations: class types, interface types, array types, value types,...