Skip to content

Consider adding a new reflection API to get field values of an Enum #100592

Open

Description

The trimmer doesn't trim Enum fields. As mentioned in the comment here, it would make sense to have a separate API that doesn't require DynamicallyAccessedMembers annotation to get Enum fields. That would prevent suppressing the warning as done here when getting Enum fields.

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

Metadata

Labels

api-needs-workAPI needs work before it is approved, it is NOT ready for implementationarea-System.Reflectionlinkable-frameworkIssues associated with delivering a linker friendly framework

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions