コード例 #1
0
ファイル: Graph.cs プロジェクト: fmms/SQLServerMetadata
 /// <summary>
 /// Write the graph to a file
 /// </summary>
 /// <param name="fileName"></param>
 public void Write(string fileName)
 {
     if (fileName != null)
     {
         if (!fileName.EndsWith(fileExtension, true, new System.Globalization.CultureInfo("en-US")))
         {
             fileName += fileExtension;
         }
         using (Stream stream = File.OpenWrite(fileName)) {
             GraphWriter graphWriter = new GraphWriter(stream, this);
             graphWriter.Write();
         }
     }
 }
コード例 #2
0
        /// <summary>
        /// writes the graph to a stream
        /// </summary>
        /// <param name="stream"></param>
        public void WriteToStream(Stream stream)
        {
            var graphWriter = new GraphWriter(stream, this);

            graphWriter.Write();
        }
コード例 #3
0
 /// <summary>
 /// writes the graph to a stream
 /// </summary>
 /// <param name="stream"></param>
 public void WriteToStream(Stream stream) {
     var graphWriter = new GraphWriter(stream, this);
     graphWriter.Write();
 }