Esempio n. 1
0
 public void Save()
 {
     if (!string.IsNullOrWhiteSpace(storageFilePath))
     {
         VariablesFileFormatter.Persist(variables, storageFilePath);
     }
 }
Esempio n. 2
0
 public string SaveAsString()
 {
     using (var writer = new StringWriter())
     {
         VariablesFileFormatter.Persist(variables, writer);
         return(writer.ToString());
     }
 }