Table of Contents

Class DictionaryDecoratorExtensions

Namespace
Cuemon.Collections.Specialized
Assembly
Cuemon.Core.dll

Extension methods for the System.Collections.Generic.IDictionary<TKey, TValue> interface hidden behind the IDecorator<T> interface.

public static class DictionaryDecoratorExtensions
Inheritance
Object
DictionaryDecoratorExtensions

Methods

ToNameValueCollection(IDecorator<IDictionary<String, String[]>>, Action<DelimitedStringOptions<String>>)

Creates a System.Collections.Specialized.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 System.Collections.Specialized.NameValueCollection that is equivalent to the enclosed IDictionary{string,string[]} of the decorator.

Exceptions

System.ArgumentNullException

decorator cannot be null.

See Also