ToDictionary Method
Definition
- Namespace
- Cuemon.Extensions.Collections.Specialized
- Assemblies
- Cuemon.Extensions.Collections.Specialized.dll
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
nvcNameValueCollectionThe NameValueCollection to extend.
setupAction<DelimitedStringOptions>The DelimitedStringOptions which may be configured.
Returns
- IDictionary<string, string[]>
A IDictionary<TKey, TValue> that is equivalent to the specified
nvc.
Exceptions
- ArgumentNullException
nvccannot be null.