Rename event add/remove methods' last arg to value

This commit is contained in:
de4dot 2011-11-21 11:26:02 +01:00
parent 7dbb0144ca
commit 9953111d1c

View File

@ -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";