Exemplo n.º 1
0
        public static SymWriter CreateWriter(ModuleDefinition module, string pdb)
        {
            var writer = new SymWriter();

            if (File.Exists(pdb))
            {
                File.Delete(pdb);
            }

            writer.Initialize(new ModuleMetadata(module), pdb, true);

            return(writer);
        }
Exemplo n.º 2
0
 internal PdbWriter(ModuleDefinition module, SymWriter writer)
 {
     this.module    = module;
     this.writer    = writer;
     this.documents = new Dictionary <string, SymDocumentWriter> ();
 }