Table of Contents

UseDictionary Method

Definition

UseDictionary(IDecorator<IHierarchy<DataPair>>, Type[])

A formatter implementation that resolves a IDictionary.

public static IDictionary UseDictionary(this IDecorator<IHierarchy<DataPair>> decorator, Type[] valueTypes)

Parameters

decorator IDecorator<IHierarchy<DataPair>>

The decorator that wraps the IHierarchy<T> to extend.

valueTypes Type[]

The value types that forms a KeyValuePair<TKey, TValue>.

Returns

IDictionary

A IDictionary with KeyValuePair<TKey, TValue> of valueTypes from the enclosed IHierarchy<T> of the decorator.

Exceptions

ArgumentNullException

decorator cannot be null.