Class DictionaryDecoratorExtensions
- Namespace
- Cuemon.Collections.Specialized
- Assembly
- Cuemon.Core.dll
Extension methods for the IDictionary<TKey,TValue> interface hidden behind the IDecorator<T> interface.
public static class DictionaryDecoratorExtensions
- Inheritance
-
DictionaryDecoratorExtensions
Methods
ToNameValueCollection(IDecorator<IDictionary<String, String[]>>, Action<DelimitedStringOptions<String>>)
Creates a NameValueCollection from the enclosed IDictionary{string,string[]} of the decorator
.
public static NameValueCollection ToNameValueCollection(this IDecorator<IDictionary<string, string[]>> decorator, Action<DelimitedStringOptions<string>> setup = null)
Parameters
decorator
IDecorator<IDictionary<String, String[]>>The IDecorator<T> to extend.
setup
Action<DelimitedStringOptions<String>>The DelimitedStringOptions{string} which may be configured.
Returns
- NameValueCollection
A NameValueCollection that is equivalent to the enclosed IDictionary{string,string[]} of the
decorator
.
Exceptions
- ArgumentNullException
decorator
cannot be null.
See Also
IDecorator<T>
Decorator<T>