Horje
c# query string builder Code Example
c# query string builder
using System.Linq;
using System.Web;
using System.Collections.Specialized;

private string ToQueryString(NameValueCollection nvc)
{
    var array = (
        from key in nvc.AllKeys
        from value in nvc.GetValues(key)
            select string.Format(
                "{0}={1}",
                HttpUtility.UrlEncode(key),
                HttpUtility.UrlEncode(value))
        ).ToArray();
    return "?" + string.Join("&", array);
}




Csharp

Related
function in c# Code Example function in c# Code Example
strings in c# Code Example strings in c# Code Example
c# clear console read chache Code Example c# clear console read chache Code Example
c# map function Code Example c# map function Code Example
how to cut a string in c# Code Example how to cut a string in c# Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10