Use non-renamable prop/event since it should be valid
This commit is contained in:
parent
5200b28fc1
commit
52e7b2926f
|
@ -519,7 +519,7 @@ namespace de4dot.code.renamer {
|
||||||
missingProps = new List<MethodDef>();
|
missingProps = new List<MethodDef>();
|
||||||
missingProps.Add(method);
|
missingProps.Add(method);
|
||||||
}
|
}
|
||||||
else if (prop == null)
|
else if (prop == null || !method.Owner.HasModule)
|
||||||
prop = method.Property;
|
prop = method.Property;
|
||||||
}
|
}
|
||||||
if (prop == null)
|
if (prop == null)
|
||||||
|
@ -701,7 +701,7 @@ namespace de4dot.code.renamer {
|
||||||
missingEvents = new List<MethodDef>();
|
missingEvents = new List<MethodDef>();
|
||||||
missingEvents.Add(method);
|
missingEvents.Add(method);
|
||||||
}
|
}
|
||||||
else if (evt == null) {
|
else if (evt == null || !method.Owner.HasModule) {
|
||||||
evt = method.Event;
|
evt = method.Event;
|
||||||
methodType = getEventMethodType(method);
|
methodType = getEventMethodType(method);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user