C#: Fix regression in indexer name output
This commit is contained in:
@@ -440,7 +440,7 @@ namespace Il2CppInspector.Outputs
|
|||||||
else {
|
else {
|
||||||
// Replace indexer name (usually "Item" but not always) with "this" - preserves explicit interface implementations
|
// Replace indexer name (usually "Item" but not always) with "this" - preserves explicit interface implementations
|
||||||
if (prop.CSharpName.IndexOf('.') != -1)
|
if (prop.CSharpName.IndexOf('.') != -1)
|
||||||
sb.Append(prop.CSharpName.Substring(0, prop.CSharpName.IndexOf('.') + 1));
|
sb.Append(prop.CSharpName.Substring(0, prop.CSharpName.LastIndexOf('.') + 1));
|
||||||
sb.Append("this[" + string.Join(", ", primary.DeclaredParameters.SkipLast(getAccess >= setAccess ? 0 : 1)
|
sb.Append("this[" + string.Join(", ", primary.DeclaredParameters.SkipLast(getAccess >= setAccess ? 0 : 1)
|
||||||
.Select(p => p.GetParameterString(scope, !SuppressMetadata, MustCompile))) + "] { ");
|
.Select(p => p.GetParameterString(scope, !SuppressMetadata, MustCompile))) + "] { ");
|
||||||
getBody = " => default;";
|
getBody = " => default;";
|
||||||
|
|||||||
Reference in New Issue
Block a user