Пример #1
0
 protected override void ProcessModule()
 {
     if (!ignoreAssemblies.Contains <string>(base.Module.Assembly.Name.Name))
     {
         TypeDefinitionDispatcher.Dispatch(base.Module, this);
     }
 }
 protected override void ProcessModule()
 {
     for (int i = 0; i < base.Module.AssemblyReferences.Count; i++)
     {
         if (!(base.Module.AssemblyReferences[i].Name == "mscorlib"))
         {
             base.Module.AssemblyReferences.RemoveAt(i);
             i--;
         }
     }
     this.Visit(base.Module.Assembly, new GenericContext());
     this.Visit(base.Module, new GenericContext());
     TypeDefinitionDispatcher.Dispatch(base.Module, this);
     for (int j = 0; j < base.Module.AssemblyReferences.Count; j++)
     {
         if (!(base.Module.AssemblyReferences[j].Name != "mscorlib"))
         {
             base.Module.AssemblyReferences.RemoveAt(j);
             j--;
         }
     }
 }
 private MethodDefinitionDispatcher(ModuleDefinition module, IMethodDefinitionVisitor visitor)
 {
     this.visitor = visitor;
     TypeDefinitionDispatcher.Dispatch(module, this);
 }