Skip to content

Commit 6527f30

Browse files
committed
Fix not renaming constructors' arguments
Fix yck1509#432
1 parent 873a4bc commit 6527f30

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Confuser.Renamer/RenamePhase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ protected override void Execute(ConfuserContext context, ProtectionParameters pa
3737

3838
if (def is MethodDef) {
3939
var method = (MethodDef)def;
40-
if (canRename && parameters.GetParameter(context, def, "renameArgs", true)) {
40+
if ((canRename || method.IsConstructor) && parameters.GetParameter(context, def, "renameArgs", true)) {
4141
foreach (ParamDef param in ((MethodDef)def).ParamDefs)
4242
param.Name = null;
4343
}

0 commit comments

Comments
 (0)