コード例 #1
0
 public static bool INIEmptySection(string iniFile, string section)
 {
     if (string.IsNullOrEmpty(section))
     {
         throw new ArgumentException("The name of the node must be specified", "section");
     }
     return(IniHelper.WritePrivateProfileSection(section, string.Empty, iniFile));
 }
コード例 #2
0
        public static bool INIWriteItems(string iniFile, string section, string items)
        {
            if (string.IsNullOrEmpty(section))
            {
                throw new ArgumentException("The name of the node must be specified", "section");
            }

            if (string.IsNullOrEmpty(items))
            {
                throw new ArgumentException("Key value pairs must be specified", "items");
            }

            return(IniHelper.WritePrivateProfileSection(section, items, iniFile));
        }