Esempio n. 1
0
        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);
        }