NodeReplacer<TBaseNode, TNode> Class
Definition
An OrderedNodeProcessor<TBaseNode, TNode> for optionally replacing nodes of a specific type in a tree.
public abstract class NodeReplacer<TBaseNode, TNode> : OrderedNodeProcessor<TBaseNode, TNode>
where TBaseNode : Node<TBaseNode>
where TNode : TBaseNode
View source
Type Parameters
| Name |
Description |
TBaseNode |
The base type of nodes in the tree. |
TNode |
The type of nodes to replace. |
Constructors
Methods
| Name |
Description |
Process(TNode) |
Performs processing on the specified node. Does not process any descendents. |
Replace(TNode) |
Optionally replace the specified node. |