public void Save()
 {
     if (!string.IsNullOrWhiteSpace(storageFilePath))
     {
         VariablesFileFormatter.Persist(variables, storageFilePath);
     }
 }
 /// <summary>
 /// If this variable dictionary was read from a file, reloads all variables from the file.
 /// </summary>
 public void Reload()
 {
     if (!string.IsNullOrWhiteSpace(storageFilePath))
     {
         VariablesFileFormatter.Populate(variables, storageFilePath);
         binding = null;
     }
 }
 public string SaveAsString()
 {
     using (var writer = new StringWriter())
     {
         VariablesFileFormatter.Persist(variables, writer);
         return(writer.ToString());
     }
 }