Source/NFX/Environment/JSONConfiguration.cs
/// <summary>
/// Saves configuration into a JSON file
/// </summary>
Saves configuration into a JSON file
Saves configuration into a JSON file
public void SaveAs(string filename, JSONWritingOptions options = null, Encoding encoding = null)
      {
        var data = ToConfigurationJSONDataMap();
        if (options==null) options = JSONWritingOptions.PrettyPrint;
        JSONWriter.WriteToFile(data, filename, options, encoding);
        base.SaveAs(filename);
      }
public void SaveAs ( string filename , JSONWritingOptions options = null , Encoding encoding = null ) { var data = ToConfigurationJSONDataMap ( ) ; if ( options == null ) options = JSONWritingOptions . PrettyPrint ; JSONWriter . WriteToFile ( data , filename , options , encoding ) ; base . SaveAs ( filename ) ; }
Saves configuration into a JSON file
Saves configuration into a JSON file
filename
string
options
JSONWritingOptions
encoding
Encoding