BEGroup.Utility.IniFile.CreateKey C# (CSharp) Method

CreateKey() public method

Creates an empty key to this INI file, if the key already exists, nothing will be done. If the section does not exist, it will be created.
public CreateKey ( string section, string key ) : void
section string Section name
key string Key name
return void
        public void CreateKey(string section, string key)
        {
            if (!ContainsSection(section)) CreateSection(section);
            if (ContainsKey(section, key)) return;
            _content[section].Add(key, null);
        }