コード例 #1
0
        public key_collection this[string sectionName]
        {
            get
            {
                if (!_sections.ContainsSection(sectionName))
                {
                    if (Configuration.AllowCreateSectionsOnFly)
                    {
                        _sections.AddSection(sectionName);
                    }
                    else
                    {
                        return(null);
                    }
                }

                return(_sections[sectionName]);
            }
        }