Beispiel #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);
        }
Beispiel #2
0
 internal PdbWriter(ModuleDefinition module, SymWriter writer)
 {
     this.module    = module;
     this.writer    = writer;
     this.documents = new Dictionary <string, SymDocumentWriter> ();
 }