FlattenAll Method
Definition
- Namespace
- Cuemon.Extensions.Runtime
- Assemblies
- Cuemon.Extensions.Core.dll
FlattenAll<T>(IDecorator<IHierarchy<T>>)
Flattens the entirety of a hierarchical structure representation into an IEnumerable<T> sequence of nodes.
public static IEnumerable<IHierarchy<T>> FlattenAll<T>(this IDecorator<IHierarchy<T>> decorator)
Parameters
decoratorIDecorator<IHierarchy<T>>The decorator that wraps the IHierarchy<T> to extend.
Returns
- IEnumerable<IHierarchy<T>>
An IEnumerable<T> sequence of IHierarchy<T> all nodes represented by the hierarchical structure.
Type Parameters
TThe type of the instance represented by the specified
decoratorin the hierarchical structure.
Exceptions
- ArgumentNullException
decoratoris null.