fix(SymbolObfus): still rename parameter names of .ctor and ..ctor even they aren't renamed

main
walon 2026-07-03 10:02:55 +08:00
parent 7b06f0fed8
commit 977779c8b7
1 changed files with 2 additions and 1 deletions

View File

@ -538,6 +538,8 @@ namespace Obfuz.ObfusPasses.SymbolObfus
{
foreach (MethodDef method in type.Methods)
{
// always rename method params, even if the method is not renamed
RenameMethodParams(method);
if (method.IsVirtual)
{
continue;
@ -805,7 +807,6 @@ namespace Obfuz.ObfusPasses.SymbolObfus
private void Rename(MethodDef method, RefMethodMetas refMethodMetas, string newName)
{
ModuleDefMD mod = (ModuleDefMD)method.DeclaringType.Module;
RenameMethodParams(method);
RenameMethodBody(method);
if (refMethodMetas != null)
{