Skip to content

Consider allowing RequiresUnreferencedCode and RequiresDynamicCode attributes on properties and events #83194

@vitek-karas

Description

@vitek-karas

Currently only the RequiresAssemblyFiles attribute is allowed on properties and events. It applies to all accessor methods as if it was present on those methods. If the method has its own attribute the one on the method is used.

For consistency it would be good to allow also the RequiresUnreferencedCode and RequiresDynamicCode attributes on properties and events. On the other hand we don't have any immediate need for that.

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