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