NameValueCollectionExtension ToQueryString

Sep 14, 2011 at 8:54 PM

        public static string ToQueryString(this NameValueCollection parameters)
        {
            return String.Join("&", (from string name in parameters select String.Concat(name, "=", Uri.EscapeDataString(parameters[name]))).ToArray());
        }