Use FindClassConstructor()
This commit is contained in:
parent
f74c1cbb0d
commit
5788848a79
|
@ -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
2
dot10
|
@ -1 +1 @@
|
|||
Subproject commit 709b4cce8000c50f969dcb2636637a8840fcb4e8
|
||||
Subproject commit a0b16e316fee176a704b8701df38793ed7411ed5
|
Loading…
Reference in New Issue
Block a user