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