Table of Contents

Class DictionaryExtensions

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

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

public static class DictionaryExtensions
Inheritance
DictionaryExtensions

Methods

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

Converts the specified query into its String equivalent.

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

Parameters

query IDictionary<String, String[]>

The 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 String equivalent to the values in the query.