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