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