Output: Give non-auto-properties accessor bodies (CS8080)

This commit is contained in:
Katy Coe
2019-12-10 15:29:10 +01:00
parent f78e2b3c54
commit d8befc0a15
4 changed files with 9 additions and 5 deletions

View File

@@ -24,6 +24,8 @@ namespace Il2CppInspector.Reflection {
public MethodInfo GetMethod { get; }
public MethodInfo SetMethod { get; }
public bool IsAutoProperty => DeclaringType.DeclaredFields.Any(f => f.Name == $"<{Name}>k__BackingField");
public override string Name { get; protected set; }
public string CSharpName =>