EnumSection() 공개 메소드

public EnumSection ( string section ) : string[]
section string
리턴 string[]
예제 #1
0
파일: DataStore.cs 프로젝트: Viproz/Pluton
 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);
 }