private void Close() { try { _symWriter?.Close(); _metadataImport?.Dispose(); _metadataImport = null; _symWriter = null; _pdbStream = null; } catch (Exception ex) { throw new PdbWritingException(ex); } }
public PdbWriter(MetadataReader metadataReader) { _pdbStream = new ComMemoryStream(); _metadataImport = new SymReaderMetadataImport(metadataReader, metadataOwnerOpt: null); _symWriter = SymReaderFactory.CreateWindowsPdbWriter(_pdbStream, _metadataImport); }