Skip to content

Replacer<TBaseNode> Class ​

Definition ​

An OrderedProcessor<TBaseNode> for optionally replacing nodes in a tree.

c#
public abstract class Replacer<TBaseNode> : OrderedProcessor<TBaseNode>, IOrderedProcessor<NoContext, TBaseNode>
   where TBaseNode : Node<TBaseNode>

View source

Type Parameters ​

NameDescription
TBaseNodeThe base type of nodes in the tree.

Constructors ​

NameDescription
Replacer()

Methods ​

NameDescription
Process(TBaseNode)Performs processing on the specified node. Does not process any descendants.
Replace(TBaseNode)Optionally replace the specified node.