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
-
ObjectDictionaryExtensions
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
BooleanSpecify
true
to encode thequery
into a URL-encoded string; otherwise,false
. Default isfalse
.
Returns
- String
A System.String equivalent to the values in the
query
.