Project writer that uses the NextStep style.
Inheritance: ProjectWriter
Exemple #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);
            }
        }
Exemple #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);
     }
 }