예제 #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);
        }
예제 #2
0
 public IniFile()
 {
     sectionCollection = new IniSectionCollection();
     Globals           = new IniKeyValueCollection();
 }