UseDictionary Method
Definition
- Namespace
- Cuemon.Extensions.Runtime
- Assemblies
- Cuemon.Extensions.Core.dll
UseDictionary(IDecorator<IHierarchy<DataPair>>, Type[])
A formatter implementation that resolves a IDictionary.
public static IDictionary UseDictionary(this IDecorator<IHierarchy<DataPair>> decorator, Type[] valueTypes)
Parameters
decoratorIDecorator<IHierarchy<DataPair>>The decorator that wraps the IHierarchy<T> to extend.
valueTypesType[]The value types that forms a KeyValuePair<TKey, TValue>.
Returns
- IDictionary
A IDictionary with KeyValuePair<TKey, TValue> of
valueTypesfrom the enclosed IHierarchy<T> of thedecorator.
Exceptions
- ArgumentNullException
decoratorcannot be null.