Table of Contents

Class DictionaryExtensions

Namespace
Cuemon.Extensions.Net
Assembly
Cuemon.Extensions.Net.dll

Extension methods for the System.Collections.Generic.IDictionary<TKey, TValue> interface.

public static class DictionaryExtensions
Inheritance
Object
DictionaryExtensions

Methods

ToQueryString(IDictionary<String, String[]>, Boolean)

Converts the specified query into its System.String equivalent.

public static string ToQueryString(this IDictionary<string, string[]> query, bool urlEncode = false)

Parameters

query IDictionary<String, String[]>

The System.Collections.Generic.IDictionary<TKey, TValue> to extend.

urlEncode Boolean

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

Returns

String

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