Table of Contents

ToNameValueCollection Method

Definition

ToNameValueCollection(IDecorator<IDictionary<string, string[]>>, Action<DelimitedStringOptions<string>>)

Creates a NameValueCollection from the enclosed dictionary of string keys and string arrays in the specified decorator.

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

Parameters

decorator IDecorator<IDictionary<string, string[]>>

The IDecorator<T> to extend.

setup Action<DelimitedStringOptions<string>>

The DelimitedStringOptions<T> which may be configured.

Returns

NameValueCollection

A NameValueCollection that is equivalent to the enclosed dictionary of string keys and string arrays in the specified decorator.

Exceptions

ArgumentNullException

decorator cannot be null.