Skip to content

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

@LakshanF

Description

@LakshanF

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.

Metadata

Metadata

Assignees

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