public void WriteAssemblyAttributes(AssemblyDefinition assembly, IWriterContextService writerContextService, bool writeUsings = false, ICollection <string> attributesToIgnore = null)
 {
     stackVariable8 = new IntermediateLanguageAttributeWriter(this.get_Language(), this.formatter, this.exceptionFormatter, this.get_Settings());
     stackVariable8.add_ExceptionThrown(new EventHandler <Exception>(this.OnExceptionThrown));
     stackVariable8.WriteAssemblyAttributes(assembly, attributesToIgnore);
     stackVariable8.remove_ExceptionThrown(new EventHandler <Exception>(this.OnExceptionThrown));
     return;
 }
Пример #2
0
        public void WriteAssemblyAttributes(AssemblyDefinition assembly, IWriterContextService writerContextService, bool writeUsings = false, ICollection <string> attributesToIgnore = null)
        {
            IntermediateLanguageAttributeWriter attributeWriter = new IntermediateLanguageAttributeWriter(this.Language, this.formatter, this.exceptionFormatter, this.Settings);

            attributeWriter.ExceptionThrown += OnExceptionThrown;
            attributeWriter.WriteAssemblyAttributes(assembly, attributesToIgnore);
            attributeWriter.ExceptionThrown -= OnExceptionThrown;
        }
        public void WriteAssemblyAttributes(AssemblyDefinition assembly, IWriterContextService writerContextService, bool writeUsings = false, ICollection<string> attributesToIgnore = null)
        {
			IntermediateLanguageAttributeWriter attributeWriter = new IntermediateLanguageAttributeWriter(this.Language, this.formatter, this.exceptionFormatter, this.WriteExceptionsAsComments, this.shouldGenerateBlocks);
			attributeWriter.WriteAssemblyAttributes(assembly, attributesToIgnore);
		}
        public void WriteAssemblyAttributes(AssemblyDefinition assembly, IWriterContextService writerContextService, bool writeUsings = false, ICollection <string> attributesToIgnore = null)
        {
            IntermediateLanguageAttributeWriter attributeWriter = new IntermediateLanguageAttributeWriter(this.Language, this.formatter, this.exceptionFormatter, this.WriteExceptionsAsComments, this.shouldGenerateBlocks);

            attributeWriter.WriteAssemblyAttributes(assembly, attributesToIgnore);
        }