Table of Contents

ReplaceAll Method

Definition

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

decorator IDecorator<IEnumerable<IHierarchy<T>>>

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

replacer Action<IHierarchy<T>, T>

The delegate that will replace all wrapped instances of the decorator.

Type Parameters

T

The type of the instance that these nodes represents.