Skip to content

[NativeAOT] Enum.GetValues(Type) should have an aot safe implementation #72140

Description

@LakshanF

We have annotated the above API, public static System.Array GetValues(System.Type enumType), as dangerous (RequiresDynamicCode("It might not be possible to create an array of the enum type at runtime. Use the GetValues<TEnum> overload instead.")).

Consider removing the RDC and providing a native AOT safe implementation.

Activity

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

Metadata

Metadata

Type

No type

Projects

  • Status
    No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions