We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffcd468 commit 8a67f48Copy full SHA for 8a67f48
ICSharpCode.Decompiler/IL/Transforms/AssignVariableNames.cs
@@ -215,7 +215,8 @@ static bool IsSetOrEventAccessor(IMethod method)
215
if (variables.TryGetValue(i, out var v))
216
variableMapping[v] = p.Name;
217
}
218
- if (!parentScope.IsReservedVariableName(p.Name, out _))
+ string nameWithoutNumber = SplitName(p.Name, out int newIndex);
219
+ if (!parentScope.IsReservedVariableName(nameWithoutNumber, out _))
220
{
221
AddExistingName(reservedVariableNames, p.Name);
222
0 commit comments