// Writer access with custom-specified format public static ISymbolWriter2 GetWriterForFile(SymbolFormat format, string pathModule, ref object emitter) { SymbolWriter writer; if (format == SymbolFormat.PDB) writer = new SymbolWriter(); else if (format == SymbolFormat.ILDB) writer = new IldbSymbolWriter(); else throw new ArgumentException("Invalid format", "format"); return InitializeWriterForFile(writer, pathModule, ref emitter); }
// Writer access with custom-specified format public static ISymbolWriter2 GetWriterForFile(SymbolFormat format, string pathModule, ref object emitter) { SymbolWriter writer; if (format == SymbolFormat.PDB) { writer = new SymbolWriter(); } else if (format == SymbolFormat.ILDB) { writer = new IldbSymbolWriter(); } else { throw new ArgumentException("Invalid format", "format"); } return(InitializeWriterForFile(writer, pathModule, ref emitter)); }