/// <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); }
/// <summary> /// Saves laconic configuration into string in Laconfig format and returns it /// </summary> public string SaveToString(LaconfigWritingOptions options = null) { return(LaconfigWriter.Write(this, options)); }