Skip to content

AOT analysis warning in CSharpMath.Editor #227

Closed

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type/Bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions