Пример #1
0
 public void Update()
 {
     foreach (var v in reader.Settings)
     {
         writer.WriteSetting(v.Key, v.Value);
     }
     writer.DropToFile();
     writer.Clean();
 }
Пример #2
0
    public static SettingsFile Create(string file)
    {
        SettingsFileWriter writer = new SettingsFileWriter(file);

        foreach (var v in (new Sample()).Settings)
        {
            writer.WriteSetting(v.Key, v.Value);
        }
        writer.DropToFile();
        return(new SettingsFile(file));
    }