Skip to content

Replacer<TBaseNode>.Replace Method

Definition

Optionally replace the specified node.

protected abstract TBaseNode? Replace(TBaseNode node);

Parameters

Name Type Description
node TBaseNode The 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.