DescendantsAndSelf Method
Definition
- Namespace
- Cuemon.Extensions.Runtime
- Assemblies
- Cuemon.Extensions.Core.dll
DescendantsAndSelf<T>(IDecorator<IHierarchy<T>>)
Gets all descendants (children, grandchildren, etc.) anf self of the current decorator in the hierarchical structure.
public static IEnumerable<IHierarchy<T>> DescendantsAndSelf<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 equal to the descendants and self of the specified
decorator.
Type Parameters
TThe type of the instance represented by the specified
decoratorin the hierarchical structure.
Exceptions
- ArgumentNullException
decoratoris null.