Rename event add/remove methods' last arg to value
This commit is contained in:
parent
7dbb0144ca
commit
9953111d1c
|
@ -281,7 +281,8 @@ namespace de4dot.renamer {
|
|||
}
|
||||
}
|
||||
|
||||
if (methodDef.Property != null && methodDef == methodDef.Property.SetMethod) {
|
||||
if ((methodDef.Property != null && methodDef == methodDef.Property.SetMethod) ||
|
||||
(methodDef.Event != null && (methodDef == methodDef.Event.AddMethod || methodDef == methodDef.Event.RemoveMethod))) {
|
||||
if (methodDef.ParamDefs.Count > 0) {
|
||||
var paramDef = methodDef.ParamDefs[methodDef.ParamDefs.Count - 1];
|
||||
param(paramDef).newName = "value";
|
||||
|
|
Loading…
Reference in New Issue
Block a user