Methods should be static and have a body

This commit is contained in:
de4dot 2012-02-13 11:11:08 +01:00
parent a35c765f15
commit 981472cd91

View File

@ -312,6 +312,8 @@ namespace de4dot.code.deobfuscators.CodeVeil {
getManifestResourceStreamMethodTmp1 = null;
getManifestResourceStreamMethodTmp2 = null;
foreach (var method in type.Methods) {
if (!method.IsStatic || method.Body == null)
continue;
if (DotNetUtils.isMethod(method, "System.IO.Stream", "(System.Reflection.Assembly,System.String)"))
getManifestResourceStreamMethodTmp1 = method;
else if (DotNetUtils.isMethod(method, "System.IO.Stream", "(System.Reflection.Assembly,System.Type,System.String)"))