public void Write(EmbeddedSymbolStream stream) { var output = stream.ToString(); if (string.IsNullOrEmpty(output)) return; var temporaryFile = Path.GetTempFileName(); try { File.WriteAllText(temporaryFile, output); this.ExecuteWrite(Resources.WriteCommand.FormatWith(this.symbolPath, temporaryFile)); } finally { File.Delete(temporaryFile); } }
public void Write(EmbeddedSymbolStream stream) { var output = stream.ToString(); if (string.IsNullOrEmpty(output)) { return; } var temporaryFile = Path.GetTempFileName(); try { File.WriteAllText(temporaryFile, output); this.ExecuteWrite(Resources.WriteCommand.FormatWith(this.symbolPath, temporaryFile)); } finally { File.Delete(temporaryFile); } }