Ejemplo n.º 1
0
        /// <summary>Returns a copy of a specified section's key-value pairs map.</summary>
        /// <param name="sectionName">The name of the section</param>
        /// <param name="lowercasekeys">True to return the keys as lowercase strings, for easier case-insensitive search.</param>
        /// <returns>A Map with the key-value pairs</returns>
        public Dictionary <String, String> getSectionContent(String sectionName, Boolean lowercasekeys)
        {
            IniSection iniSection = getSection(sectionName);

            if (iniSection == null)
            {
                return(null);
            }
            return(iniSection.getKeyValuePairs(lowercasekeys));
        }
Ejemplo n.º 2
0
        /// <summary>Returns a copy of a specified section's key-value pairs map.</summary>
        /// <param name="sectionName">The name of the section</param>
        /// <returns>A Map with the key-value pairs</returns>
        public Dictionary <String, String> getSectionContent(String sectionName)
        {
            IniSection iniSection = getSection(sectionName);

            if (iniSection == null)
            {
                return(null);
            }
            return(iniSection.getKeyValuePairs());
        }