Table of Contents

UseCollection Method

Definition

UseCollection(IDecorator<IHierarchy<DataPair>>, Type)

A formatter implementation that resolves a ICollection.

public static ICollection UseCollection(this IDecorator<IHierarchy<DataPair>> decorator, Type valueType)

Parameters

decorator IDecorator<IHierarchy<DataPair>>

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

valueType Type

The type of the objects in the collection.

Returns

ICollection

A ICollection of valueType from the enclosed IHierarchy<T> of the decorator.

Exceptions

ArgumentNullException

decorator cannot be null.