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);
		}
Ejemplo n.º 3
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);
        }