Replace Method
Definition
- Namespace
- Cuemon.Extensions.Runtime
- Assemblies
- Cuemon.Extensions.Core.dll
Replace<T>(IDecorator<IHierarchy<T>>, Action<IHierarchy<T>, T>)
Replace the instance of the decorator with a replacer delegate.
public static void Replace<T>(this IDecorator<IHierarchy<T>> decorator, Action<IHierarchy<T>, T> replacer)
Parameters
decoratorIDecorator<IHierarchy<T>>The decorator that wraps the IHierarchy<T> to extend.
replacerAction<IHierarchy<T>, T>The delegate that will replace the wrapped instance of the
decorator.
Type Parameters
TThe type of the instance that this node represents.