PipelineStage<TBaseNode>.Run Method
Overloads
| Name | Description |
|---|---|
Run(TBaseNode, TBaseNode) |
Runs the stage, returning the potentially new root via an out parameter. |
Run(TBaseNode) |
Runs the stage, returning a tuple of whether the pipeline should continue and the potentially replaced root node. |
Run(TBaseNode, TBaseNode)
Runs the stage, returning the potentially new root via an out parameter.
public bool Run(TBaseNode root, out TBaseNode newRoot);
Parameters
| Name | Type | Description |
|---|---|---|
root |
TBaseNode |
The root node to run processing on. |
newRoot |
TBaseNode |
The root node after processing, which may have been replaced by a Replacer<TBaseNode>. |
Returns
true if the pipeline should proceed to the next stage, false otherwise.
Run(TBaseNode)
Runs the stage, returning a tuple of whether the pipeline should continue and the potentially replaced root node.
public ValueTuple<bool, TBaseNode> Run(TBaseNode root);
Parameters
| Name | Type | Description |
|---|---|---|
root |
TBaseNode |
The root node to run processing on. |
Returns
ValueTuple<Boolean, TBaseNode>
A tuple of whether processing should continue and the root node, which may have been replaced by a Replacer<TBaseNode>.