Class NameValueCollectionExtensions
- Namespace
- Cuemon.Extensions.Net
- Assembly
- Cuemon.Extensions.Net.dll
Extension methods for the System.Collections.Specialized.NameValueCollection class.
public static class NameValueCollectionExtensions
- Inheritance
-
ObjectNameValueCollectionExtensions
Methods
ToQueryString(NameValueCollection, Boolean)
Converts the specified nvc
into its System.String equivalent.
public static string ToQueryString(this NameValueCollection nvc, bool urlEncode = false)
Parameters
nvc
NameValueCollectionThe System.Collections.Specialized.NameValueCollection to extend.
urlEncode
BooleanSpecify
true
to encode thenvc
into a URL-encoded string; otherwise,false
. Default isfalse
.
Returns
- String
A System.String equivalent to the values in the
nvc
.