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
decoratorIDecorator<IDictionary<string, string[]>>The IDecorator<T> to extend.
setupAction<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
decoratorcannot be null.
See Also
IDecorator<T>
Decorator<T>