/// <summary>
        /// Retrieve a section object by name
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        public IniFileSection GetSection(string name)
        {
            if (Sections.ContainsKey(name))
            {
                return(Sections[name]);
            }
            var newSection = new IniFileSection {
                Name = name
            };

            Sections[name] = newSection;
            return(newSection);
        }
Exemple #2
0
 /// <summary>
 /// Retrieve a section object by name
 /// </summary>
 /// <param name="name"></param>
 /// <returns></returns>
 public IniFileSection GetSection(string name)
 {
     if (Sections.ContainsKey(name)) {
         return Sections[name];
     }
     var newSection = new IniFileSection { Name = name };
     Sections[name] = newSection;
     return newSection;
 }