Root Method
Definition
- Namespace
- Cuemon.Extensions.Runtime
- Assemblies
- Cuemon.Extensions.Core.dll
Root<T>(IDecorator<IHierarchy<T>>)
Returns the root node of the specified decorator in the hierarchical structure.
public static IHierarchy<T> Root<T>(this IDecorator<IHierarchy<T>> decorator)
Parameters
decoratorIDecorator<IHierarchy<T>>The decorator that wraps the IHierarchy<T> to extend.
Returns
- IHierarchy<T>
An IHierarchy<T> node that represents the root of the specified
decorator.
Type Parameters
TThe type of the instance represented by the specified
decoratorin the hierarchical structure.
Exceptions
- ArgumentNullException
decoratoris null.