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[]>, bool)

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 bool

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.