Output: Handle explicit interface implementation of indexers correctly
This commit is contained in:
@@ -271,7 +271,9 @@ namespace Il2CppInspector
|
||||
|
||||
// Indexer
|
||||
else {
|
||||
sb.Append("this[" + string.Join(", ", primary.DeclaredParameters.SkipLast(getAccess >= setAccess ? 0 : 1)
|
||||
// Replace "Item" with "this" - preserves explicit interface implementations
|
||||
sb.Append(prop.CSharpName[..^4] + "this");
|
||||
sb.Append("[" + string.Join(", ", primary.DeclaredParameters.SkipLast(getAccess >= setAccess ? 0 : 1)
|
||||
.Select(p => p.GetParameterString(scope, !SuppressMetadata, MustCompile))) + "] { ");
|
||||
getBody = " => default;";
|
||||
setBody = " {}";
|
||||
|
||||
Reference in New Issue
Block a user