Table of Contents

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
Object
NameValueCollectionExtensions

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 NameValueCollection

The System.Collections.Specialized.NameValueCollection to extend.

urlEncode Boolean

Specify true to encode the nvc into a URL-encoded string; otherwise, false. Default is false.

Returns

String

A System.String equivalent to the values in the nvc.