Skip to content

EventInfo.EventHandlerType.GetMethod("Invoke") could be made trim safe #114113

Closed
@MichalStrehovsky

Description

@MichalStrehovsky

EventHandlerType is going to be a delegate and we keep the Invoke method on all delegates as a rule. We could analyze this and avoid a warning.

Alternatively, we could introduce a new API on EventInfo to get the MethodInfo for the delegate Invoke method. EventInfo already has such proxy shortcut property such as EventInfo.IsMulticast

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-Tools-ILLink.NET linker development as well as trimming analyzers

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions