Table of Contents

Class DictionaryExtensions

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

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

public static class DictionaryExtensions
Inheritance
Object
DictionaryExtensions

Methods

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

Creates a System.Collections.Specialized.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 System.Collections.Generic.IDictionary<TKey, TValue> to extend.

setup Action<DelimitedStringOptions<String>>

The DelimitedStringOptions{string} which may be configured.

Returns

NameValueCollection

A System.Collections.Specialized.NameValueCollection that is equivalent to the specified source.

Exceptions

System.ArgumentNullException

source cannot be null.