Use FindClassConstructor()

This commit is contained in:
de4dot 2012-11-01 10:14:54 +01:00
parent f74c1cbb0d
commit 5788848a79
2 changed files with 2 additions and 6 deletions

View File

@ -150,11 +150,7 @@ namespace de4dot.blocks {
}
public static DN.MethodDef getModuleTypeCctor(DN.ModuleDef module) {
foreach (var m in module.GlobalType.Methods) {
if (m.Name == ".cctor")
return m;
}
return null;
return module.GlobalType.FindClassConstructor();
}
public static bool isEmpty(DN.MethodDef method) {

2
dot10

@ -1 +1 @@
Subproject commit 709b4cce8000c50f969dcb2636637a8840fcb4e8
Subproject commit a0b16e316fee176a704b8701df38793ed7411ed5