Compass.Coondornator.OmssaParameterLine.ParseLine C# (CSharp) Method

ParseLine() private method

private ParseLine ( string line ) : bool
line string
return bool
        private bool ParseLine(string line)
        {
            var matches = omssaRegex.Matches(line);

            foreach (Match match in matches)
            {
                if (!match.Success)
                    return false;

                string key = match.Groups[1].Value;
                string value = match.Groups[2].Value;
                OmssaParameter parameter = new OmssaParameter(key, value);
                Parameters.Add(parameter);
            }
            return true;
        }