Project writer that uses the NextStep style.
Inheritance: ProjectWriter
Beispiel #1
0
        /// <summary>
        ///   Writes to file.
        /// </summary>
        /// <param name = "path">The path.</param>
        public void WriteToFile(String path)
        {
            // Create a BOM-less encoding
            Encoding encoding = new UTF8Encoding(false);

            using (StreamWriter writer = new StreamWriter(path, false, encoding))
            {
                ProjectWriter projectWriter = new ProjectNSWriter(writer);
                this.Write(projectWriter);
            }
        }
Beispiel #2
0
 /// <summary>
 ///   Writes to file.
 /// </summary>
 /// <param name = "path">The path.</param>
 public void WriteToFile(String path)
 {
     // Create a BOM-less encoding
     Encoding encoding = new UTF8Encoding(false);
     using (StreamWriter writer = new StreamWriter(path, false, encoding))
     {
         ProjectWriter projectWriter = new ProjectNSWriter(writer);
         this.Write(projectWriter);
     }
 }