Table of Contents

Replace Method

Definition

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

decorator IDecorator<IHierarchy<T>>

The decorator that wraps the IHierarchy<T> to extend.

replacer Action<IHierarchy<T>, T>

The delegate that will replace the wrapped instance of the decorator.

Type Parameters

T

The type of the instance that this node represents.