BF2Statistics.Gamespy.MasterClient.GetParameterValue C# (CSharp) Method

GetParameterValue() private method

A simple method of getting the value of the passed parameter key, from the returned array of data from the client
private GetParameterValue ( string parts, string parameter ) : string
parts string The array of data from the client
parameter string The parameter
return string
        private string GetParameterValue(string[] parts, string parameter)
        {
            bool next = false;
            foreach (string part in parts)
            {
                if (next)
                    return part;
                else if (part == parameter)
                    next = true;
            }
            return "";
        }