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