StringExtensions.ToQueryString Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

ToQueryString(string)

Parses a query string into a System.Collections.Specialized.NameValueCollection using UTF8 encoding.

The ParseQueryString method uses UTF8 format to parse the query string In the returned NameValueCollection, URL-encoded characters are decoded and multiple occurrences of the same query string parameter are listed as a single entry with a comma separating each value.

public static NameValueCollection ToQueryString(this string query)

Parameters

query
string

The query string to parse.

Returns

System.Collections.Specialized.NameValueCollection

A System.Collections.Specialized.NameValueCollection of query parameters and values.