private void WritePdbFile() { WritePdbHeap(); WriteTableHeap(); writer.BuildMetadataTextMap(); writer.WriteMetadataHeader(); writer.WriteMetadata(); writer.Flush(); writer.stream.Dispose(); }
public virtual void Save(Stream stream) { Image image = new Image(); image.Rows = MetadataObjects.AsParallel().Select(m => m.ImageRow).ToArray(); //writer closes stream on disposing. Error in CfuPackage //using (ImageWriter writer = new ImageWriter(stream)) //{ // writer.WriteImage(image); //} ImageWriter writer = new ImageWriter(stream); writer.WriteImage(image); writer.Flush(); }
void WritePdbFile() { WritePdbHeap(); WriteTableHeap(); writer.BuildMetadataTextMap(); writer.WriteMetadataHeader(); writer.WriteMetadata(); writer.Flush(); ComputeChecksumAndPdbId(); WritePdbId(); }
public void Dispose() { if (IsEmbedded) { return; } WritePdbHeap(); WriteTableHeap(); writer.BuildMetadataTextMap(); writer.WriteMetadataHeader(); writer.WriteMetadata(); writer.Flush(); writer.stream.Dispose(); }