CS: Fix enumeration scoping on default field values (CS0103)

This commit is contained in:
Katy Coe
2020-06-22 18:38:16 +02:00
parent 2791721dd1
commit ef22c6628b
2 changed files with 2 additions and 2 deletions

View File

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