Return to Snippet

Revision: 34460
at October 22, 2010 21:22 by jonjoneshomegmailcom


Initial Code
private string JoinNvcToQs(NameValueCollection qs)
        {
            return string.Join("&", Array.ConvertAll(qs.AllKeys, key => string.Format("{0}={1}", HttpUtility.UrlEncode(key), HttpUtility.UrlEncode(qs[key]))));
        }

Initial URL

                                

Initial Description

                                

Initial Title
Namevaluecolleciton To Querystring

Initial Tags

                                

Initial Language
C#