Skip to content

AOT analysis warning in CSharpMath.Editor #227

@charlesroddie

Description

@charlesroddie

ILC : AOT analysis warning IL3050: CSharpMath.Editor.SubIndexTypeMismatchException.SubIndexTypeMismatchException(MathListIndex): Using member 'System.Type.GetEnumValues()' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. It might not be possible to create an array of the enum type at runtime. Use Enum.GetValues or the GetEnumValuesAsUnderlyingType method instead.

Array.IndexOf(typeof(MathListSubIndexType).GetEnumValues(), index.SubIndexType) == -1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status/1. ReadyThis issue has been confirmed and is ready to be worked on.Type/Bug

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions