Replacer<TNode>.ReplaceNode Method
Definition
Optionally replace the specified node.
protected abstract TNode? ReplaceNode(TNode node);
Parameters
Name | Type | Description |
---|---|---|
node | TNode | The node to potentially replace. |
Returns
TNode
A new node to replace node
in the tree. Return node
or null
to leave node
in the tree.
Last modified: 22 November 2024