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
System.String

Returns

System.Collections.Specialized.NameValueCollection

A of query parameters and values.