Table of Contents

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 NameValueCollection

The NameValueCollection to extend.

urlEncode Boolean

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

Returns

String

A String equivalent to the values in the nvc.