Don't need to prefix the method with the class name

This commit is contained in:
de4dot 2012-02-03 04:24:16 +01:00
parent 8e89e011e9
commit 975d195dbc

View File

@ -623,8 +623,8 @@ namespace de4dot.blocks {
if (call.OpCode.Code != Code.Call && call.OpCode.Code != Code.Callvirt)
continue;
var methodRef = call.Operand as MethodReference;
var type = DotNetUtils.getType(module, methodRef.DeclaringType);
var methodDef = DotNetUtils.getMethod(type, methodRef);
var type = getType(module, methodRef.DeclaringType);
var methodDef = getMethod(type, methodRef);
if (methodDef != null) {
yield return new Tuple<TypeDefinition, MethodDefinition> {
Item1 = type,