iniParser.GetLine C# (CSharp) Method

GetLine() public method

Returns the Key, Value, subsection and comment of the choosen variable.
public GetLine ( string key ) : string[]
key string The variable name.
return string[]
    public string[] GetLine(string key)
    {
        string[] list = new string[4];

        for(int i = 0; i < keys.Count; i++){
            if(keys[i].Equals(key)){
                list[0] = subSections[i];
                list[1] = keys[i];
                list[2] = vals[i];
                list[3] = comments[i];
                return list;
            }
        }

        return list;
    }