EnumSection() public method

public EnumSection ( string section ) : string[]
section string
return string[]
Exemplo n.º 1
0
 public bool AddFromIni(string inipath)
 {
     if (File.Exists(inipath))
     {
         IniParser ini = new IniParser(inipath);
         foreach (string section in ini.Sections)
         {
             foreach (string setting in ini.EnumSection(section))
             {
                 this.Add(section, setting, ini.GetSetting(section, setting));
             }
         }
         return true;
     }
     return false;
 }
Exemplo n.º 2
0
 public bool AddFromIni(string inipath)
 {
     if (File.Exists(inipath))
     {
         IniParser ini = new IniParser(inipath);
         foreach (string section in ini.Sections.Keys)
         {
             foreach (string setting in ini.EnumSection(section))
             {
                 this.Add(section, setting, ini.GetSetting(section, setting));
             }
         }
         return(true);
     }
     return(false);
 }