ToNameValueCollection Method
Definition
- Namespace
- Cuemon.Collections.Specialized
- Assemblies
- Cuemon.Core.dll
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
decoratorIDecorator<IDictionary<string, string[]>>The IDecorator<T> to extend.
setupAction<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
decoratorcannot be null.