UseCollection Method
Definition
- Namespace
- Cuemon.Extensions.Runtime
- Assemblies
- Cuemon.Extensions.Core.dll
UseCollection(IDecorator<IHierarchy<DataPair>>, Type)
A formatter implementation that resolves a ICollection.
public static ICollection UseCollection(this IDecorator<IHierarchy<DataPair>> decorator, Type valueType)
Parameters
decoratorIDecorator<IHierarchy<DataPair>>The decorator that wraps the IHierarchy<T> to extend.
valueTypeTypeThe type of the objects in the collection.
Returns
- ICollection
A ICollection of
valueTypefrom the enclosed IHierarchy<T> of thedecorator.
Exceptions
- ArgumentNullException
decoratorcannot be null.