Skip to content

NodeReplacer<TBaseNode, TNode>.Replace Method ​

Definition ​

Optionally replace the specified node.

c#
protected abstract TBaseNode? Replace(TNode node);

Parameters ​

NameTypeDescription
nodeTNodeThe node to potentially replace.

Returns ​

TBaseNode

The replacement node, or node or null to leave it alone. The replacement must not already have a parent.