private static string joinParams(Dictionary <string, string> pars)
        {
            var result = new List <Tuple <string, string> >();

            foreach (var paramName in pars.Keys)
            {
                var paramContent = pars[paramName];
                var values       = paramContent.Split(',');

                foreach (var value in values)
                {
                    result.Add(new Tuple <string, string>(paramName, value));
                }
            }

            return(QueryParam.Join(result));
        }
        private static Dictionary <string, string> splitParams(string query)
        {
            var result = new Dictionary <string, string>();

            var pars = QueryParam.Split(query);

            foreach (var kv in pars)
            {
                var key   = kv.Item1;
                var value = kv.Item2;

                if (result.ContainsKey(key))
                {
                    result[key] = result[key] + "," + value;
                }
                else
                {
                    result.Add(key, value);
                }
            }

            return(result);
        }