You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All parts of the TypeReference for such an enum are right, it's just not flagged as a value type. As a result, using that TypeReference elsewhere results in load/resolve-time errors when using the modified assembly.
Looks like the reading for custom attribute fields/properties (AssemblyReader.ReadCustomAttributeFieldOrPropType) sees ElementType.Enum and then bases the TypeReference on the type name it finds.
The text was updated successfully, but these errors were encountered:
Zastai
changed the title
IsValueType not set correctly for custom attribute fields of a (non-framework) enum typeIsValueType not set correctly for custom attribute fields of an enum type
May 3, 2024
All parts of the TypeReference for such an enum are right, it's just not flagged as a value type. As a result, using that TypeReference elsewhere results in load/resolve-time errors when using the modified assembly.
Looks like the reading for custom attribute fields/properties (
AssemblyReader.ReadCustomAttributeFieldOrPropType
) sees ElementType.Enum and then bases the TypeReference on the type name it finds.The text was updated successfully, but these errors were encountered: