예제 #1
0
 /// <summary>
 /// Saves configuration into a file
 /// </summary>
 public void SaveAs(string filename, LaconfigWritingOptions options = null)
 {
     using (var fs = new FileStream(filename, FileMode.Create))
         LaconfigWriter.Write(this, fs, options);
     base.SaveAs(filename);
 }
예제 #2
0
 /// <summary>
 /// Saves laconic configuration into string in Laconfig format and returns it
 /// </summary>
 public string SaveToString(LaconfigWritingOptions options = null)
 {
     return(LaconfigWriter.Write(this, options));
 }