EnumSection() public method

public EnumSection ( string section ) : string[]
section string
return string[]
示例#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;
 }
示例#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);
 }