iniParser.Remove C# (CSharp) Method

Remove() public method

Removes the selected Variable including its value and comment.
public Remove ( string key ) : void
key string The variable name.
return void
    public void Remove(string key)
    {
        for(int i = 0; i < keys.Count; i++){
            if(keys[i].Equals(key)){
                subSections.RemoveAt(i);
                keys.RemoveAt(i);
                vals.RemoveAt(i);
                comments.RemoveAt(i);
                return;
            }
        }
        Debug.LogError("Key not found");
    }

Same methods

iniParser::Remove ( string subSection, string key ) : void