Output: Don't emit unnecessary scope on explicit interface implementations of methods and properties

This commit is contained in:
Katy Coe
2019-11-17 23:38:47 +01:00
parent 22d85ce683
commit 10dfc60344
3 changed files with 25 additions and 3 deletions

View File

@@ -261,7 +261,7 @@ namespace Il2CppInspector
// Non-indexer
if ((!prop.CanRead || !prop.GetMethod.DeclaredParameters.Any()) && (!prop.CanWrite || prop.SetMethod.DeclaredParameters.Count == 1))
sb.Append($"{prop.Name} {{ ");
sb.Append($"{prop.CSharpName} {{ ");
// Indexer
else
sb.Append("this[" + string.Join(", ", primary.DeclaredParameters.SkipLast(getAccess >= setAccess? 0 : 1)