Only use the DNR inline method hack if it's a static method
This commit is contained in:
parent
f79b12d4f3
commit
948d5c1744
|
@ -84,6 +84,8 @@ namespace de4dot.blocks.cflow {
|
|||
return false;
|
||||
if (method.Parameters.Count > 0)
|
||||
return false;
|
||||
if (!method.IsStatic)
|
||||
return false;
|
||||
if (!MemberReferenceHelper.verifyType(method.MethodReturnType.ReturnType, "mscorlib", "System.Boolean"))
|
||||
return false;
|
||||
var body = method.Body;
|
||||
|
|
Loading…
Reference in New Issue
Block a user