Skip to content

Replacer<TContext, TBaseNode> Class ​

Definition ​

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

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

View source

Type Parameters ​

NameDescription
TContextThe type of the processing context.
TBaseNodeThe base type of nodes in the tree.

Constructors ​

NameDescription
Replacer()

Methods ​

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