Skip to content

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

@LakshanF

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.

Metadata

Metadata

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions