public SymbolWriterImpl(ISymUnmanagedWriter2 writer, string pdbFileName, Stream pdbStream, PdbWriterOptions options, bool ownsStream)
 {
     this.writer       = writer ?? throw new ArgumentNullException(nameof(writer));
     asyncMethodWriter = writer as ISymUnmanagedAsyncMethodPropertiesWriter;
     this.pdbStream    = pdbStream ?? throw new ArgumentNullException(nameof(pdbStream));
     this.pdbFileName  = pdbFileName;
     this.ownsStream   = ownsStream;
     isDeterministic   = (options & PdbWriterOptions.Deterministic) != 0 && writer is ISymUnmanagedWriter6;
 }
Beispiel #2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="writer">Writer</param>
 /// <param name="pdbFileName">PDB file name</param>
 public SymbolWriter(ISymUnmanagedWriter2 writer, string pdbFileName)
 {
     if (writer == null)
     {
         throw new ArgumentNullException("writer");
     }
     if (pdbFileName == null)
     {
         throw new ArgumentNullException("pdbFileName");
     }
     this.writer            = writer;
     this.asyncMethodWriter = writer as ISymUnmanagedAsyncMethodPropertiesWriter;
     this.pdbFileName       = pdbFileName;
 }