示例#1
0
        public IniSection(string sectionName, IEqualityComparer <string> equalityComparer, bool isComment = false)
        {
            if (string.IsNullOrEmpty(sectionName))
            {
                throw new ArgumentException("The section name cannot be empty");
            }

            Name               = sectionName;
            IsComment          = isComment;
            KeyValueCollection = new IniKeyValueCollection(equalityComparer);
        }
 public IniFile()
 {
     sectionCollection = new IniSectionCollection();
     Globals           = new IniKeyValueCollection();
 }