NodeReplacer<TContext, TBaseNode, TNode>.Replace Method
Definition
Optionally replace the specified node.
protected abstract TBaseNode? Replace(TContext? context, TNode node);
Parameters
| Name | Type | Description |
|---|---|---|
context |
TContext |
The processing context. |
node |
TNode |
The node to potentially replace. |
Returns
TBaseNode
A new node to replace node in the tree. Return node or null to leave node in the tree.