public void ProcessAssembly(ModuleDefinition module)
 {
     foreach (var type in module.GetAllClasses())
     {
         ProcessType(type);
     }
 }
Example #2
0
 public void ConvertFunctionPointer(ModuleDefinition module)
 {
     foreach (var type in module.GetAllClasses())
     {
         foreach (var methodDefinition in type.Methods)
         {
             ReplaceUnmanaged(methodDefinition);
         }
     }
 }
Example #3
0
 public override void Execute()
 {
     allClasses = ModuleDefinition.GetAllClasses();
     ReadConfig();
     ProcessIncludesExcludes();
     ProcessAssembly();
     ConvertCallToCallVirtual();
     ConvertNewToOverrides();
     ConvertFunctionPointer();
     CleanAttributes();
 }
Example #4
0
 public void ProcessAssembly()
 {
     foreach (var type in ModuleDefinition.GetAllClasses())
     {
         if (!ShouldInclude(type))
         {
             continue;
         }
         if (ShouldIncludeType(type))
         {
             ProcessType(type);
         }
     }
 }