Table of Contents

Class DictionaryExtensions

Namespace
Cuemon.Extensions.Collections.Specialized
Assembly
Cuemon.Extensions.Collections.Specialized.dll

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

public static class DictionaryExtensions
Inheritance
DictionaryExtensions

Methods

ToNameValueCollection(IDictionary<String, String[]>, Action<DelimitedStringOptions<String>>)

Creates a NameValueCollection from the specified source.

public static NameValueCollection ToNameValueCollection(this IDictionary<string, string[]> source, Action<DelimitedStringOptions<string>> setup = null)

Parameters

source IDictionary<String, String[]>

An IDictionary<TKey,TValue> to extend.

setup Action<DelimitedStringOptions<String>>

The DelimitedStringOptions{string} which may be configured.

Returns

NameValueCollection

A NameValueCollection that is equivalent to the specified source.

Exceptions

ArgumentNullException

source cannot be null.