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