Table of Contents

ToNameValueCollection Method

Definition

Namespace
Cuemon.Extensions.Collections.Specialized
Assemblies
Cuemon.Extensions.Collections.Specialized.dll
Source
src/Cuemon.Extensions.Collections.Specialized/DictionaryExtensions.cs

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<T> which may be configured.

Returns

NameValueCollection

A NameValueCollection that is equivalent to the specified source.

Exceptions

ArgumentNullException

source cannot be null.