Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions