Table of Contents

ToDictionary Method

Definition

ToDictionary(NameValueCollection, Action<DelimitedStringOptions>)

Creates a IDictionary<TKey, TValue> from the specified nvc.

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

Parameters

nvc NameValueCollection

The NameValueCollection to extend.

setup Action<DelimitedStringOptions>

The DelimitedStringOptions which may be configured.

Returns

IDictionary<string, string[]>

A IDictionary<TKey, TValue> that is equivalent to the specified nvc.

Exceptions

ArgumentNullException

nvc cannot be null.