/// <summary> /// Parse parameters. /// </summary> /// /// <param name="line">The line to parse.</param> /// <returns>The parsed values.</returns> public static IDictionary <String, String> ParseParams(String line) { IDictionary <String, String> result = new Dictionary <String, String>(); var parser = new SimpleParser(line); while (!parser.EOL()) { String name = ParseName(parser) .ToUpper(); parser.EatWhiteSpace(); if (!parser.LookAhead("=", false)) { throw new EncogError("Missing equals(=) operator."); } parser.Advance(); String v = ParseValue(parser); result[name.ToUpper()] = v; if (!parser.ParseThroughComma()) { break; } } return(result); }