public virtual void WriteModuleAttributes(ModuleDefinition module, IWriterContextService writerContextService, bool writeUsings = false, ICollection <string> attributesToIgnore = null)
 {
     this.SetAssemblyContext(new AssemblySpecificContext());
     V_1 = writerContextService.GetModuleContext(module, this.get_Language());
     this.SetModuleContext(V_1);
     this.WriteModuleAttributesInternal(module, V_1.get_ModuleNamespaceUsings(), writeUsings, attributesToIgnore);
     return;
 }
 public void WriteAssemblyInfo(AssemblyDefinition assembly, IWriterContextService writerContextService, bool writeUsings = false, ICollection <string> assemblyAttributesToIgnore = null, ICollection <string> moduleAttributesToIgnore = null)
 {
     V_0 = writerContextService.GetAssemblyContext(assembly, this.get_Language());
     this.SetAssemblyContext(V_0);
     V_1 = writerContextService.GetModuleContext(assembly.get_MainModule(), this.get_Language());
     this.SetModuleContext(V_1);
     this.WriteAssemblyInfoInternal(assembly, V_0.get_AssemblyNamespaceUsings(), V_1.get_ModuleNamespaceUsings(), writeUsings, assemblyAttributesToIgnore, moduleAttributesToIgnore);
     return;
 }
		public virtual void WriteAssemblyAttributes(AssemblyDefinition assembly, IWriterContextService writerContextService, bool writeUsings = false, ICollection<string> attributesToIgnore = null)
		{
			AssemblySpecificContext assemblyContext = writerContextService.GetAssemblyContext(assembly, Language);
			SetAssemblyContext(assemblyContext);

			ModuleSpecificContext mainModuleContext = writerContextService.GetModuleContext(assembly.MainModule, Language);
			SetModuleContext(mainModuleContext);

			WriteAssemblyAttributesInternal(assembly, assemblyContext.AssemblyNamespaceUsings, mainModuleContext.ModuleNamespaceUsings, writeUsings, attributesToIgnore);
		}
Example #4
0
        public virtual void WriteAssemblyAttributes(AssemblyDefinition assembly, IWriterContextService writerContextService, bool writeUsings = false, ICollection <string> attributesToIgnore = null)
        {
            AssemblySpecificContext assemblyContext = writerContextService.GetAssemblyContext(assembly, Language);

            SetAssemblyContext(assemblyContext);

            ModuleSpecificContext mainModuleContext = writerContextService.GetModuleContext(assembly.MainModule, Language);

            SetModuleContext(mainModuleContext);

            WriteAssemblyAttributesInternal(assembly, assemblyContext.AssemblyNamespaceUsings, mainModuleContext.ModuleNamespaceUsings, writeUsings, attributesToIgnore);
        }
Example #5
0
        public virtual void WriteModuleAttributes(ModuleDefinition module, IWriterContextService writerContextService, bool writeUsings = false, ICollection <string> attributesToIgnore = null)
        {
            AssemblySpecificContext assemblyContext = new AssemblySpecificContext();

            SetAssemblyContext(assemblyContext);

            ModuleSpecificContext moduleContext = writerContextService.GetModuleContext(module, Language);

            SetModuleContext(moduleContext);


            WriteModuleAttributesInternal(module, moduleContext.ModuleNamespaceUsings, writeUsings, attributesToIgnore);
        }
		public virtual void WriteModuleAttributes(ModuleDefinition module, IWriterContextService writerContextService, bool writeUsings = false, ICollection<string> attributesToIgnore = null)
		{
			AssemblySpecificContext assemblyContext = new AssemblySpecificContext();
			SetAssemblyContext(assemblyContext);

			ModuleSpecificContext moduleContext = writerContextService.GetModuleContext(module, Language);
			SetModuleContext(moduleContext);


			WriteModuleAttributesInternal(module, moduleContext.ModuleNamespaceUsings, writeUsings, attributesToIgnore);
		}