Skip to content

Remove trim warnings from ComponentModel APIs that take Type as a parameter #97841

@LakshanF

Description

@LakshanF

WinForms have calls to ComponentModel APIs with a type as a parameter that gets trim warnings due to these APIs having RequiresUnreferencedCodeAttribute. Consider making trim compatible versions of these APIs, perhaps with a feature switch set.

Note that some of these APIs have the pattern object.GetType() to get the type parameter. A fuller list of these APIs can be found,
Default_Trimmed_Warnings_wpf_attributes_excluded_ComponentModel_Type.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    api-suggestionEarly API idea and discussion, it is NOT ready for implementationarea-System.ComponentModellinkable-frameworkIssues associated with delivering a linker friendly frameworkneeds-author-actionAn issue or pull request that requires more info or actions from the author.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions