Class DictionaryExtensions
- Namespace
- Cuemon.Extensions.Collections.Specialized
- Assembly
- Cuemon.Extensions.Collections.Specialized.dll
Extension methods for the IDictionary<TKey, TValue> interface.
public static class DictionaryExtensions
- Inheritance
-
DictionaryExtensions
Methods
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
source
IDictionary<string, string[]>An IDictionary<TKey, TValue> to extend.
setup
Action<DelimitedStringOptions<string>>The DelimitedStringOptions{string} which may be configured.
Returns
- NameValueCollection
A NameValueCollection that is equivalent to the specified
source
.
Exceptions
- ArgumentNullException
source
cannot be null.