Output: Show enum usages as their corresponding member names (CS0266, CS1750)

This commit is contained in:
Katy Coe
2019-11-29 08:37:46 +01:00
parent b36ccda9b9
commit da9252a68c
3 changed files with 25 additions and 9 deletions

View File

@@ -24,7 +24,7 @@ namespace Il2CppInspector.Reflection {
public bool HasDefaultValue => (Attributes & FieldAttributes.HasDefault) != 0;
public object DefaultValue { get; }
public string DefaultValueString => HasDefaultValue ? DefaultValue.ToCSharpValue() : "";
public string DefaultValueString => HasDefaultValue ? DefaultValue.ToCSharpValue(FieldType) : "";
// Information/flags about the field
public FieldAttributes Attributes { get; }