Only use the DNR inline method hack if it's a static method

This commit is contained in:
de4dot 2011-10-20 03:34:05 +02:00
parent f79b12d4f3
commit 948d5c1744

View File

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