Beispiel #1
0
 public static IniFile Load(string path)
 {
     return(new IniFile(Ini.Get(path).Select(s =>
                                             new IniSection(s, Ini.Get(path, s).Select(k =>
                                                                                       new IniProperty(k, Ini.Get(path, s, k).FirstOrDefault())).ToArray())).ToArray()));
 }
Beispiel #2
0
 public void Save(string path)
 {
     Sections.ToList().ForEach(s => s.Properties.ToList().ForEach(p => Ini.Put(path, s.Name, p.Key, p.Value)));
 }