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>Type Parameters ​
| Name | Description |
|---|---|
TContext | The type of the processing context. |
TBaseNode | The base type of nodes in the tree. |
Constructors ​
| Name | Description |
|---|---|
Replacer() |
Methods ​
| Name | Description |
|---|---|
Process(TContext, TBaseNode) | Performs processing on the specified node. Does not process any descendants. |
Replace(TContext, TBaseNode) | Optionally replace the specified node. |