NodeVisitor<TContext, TBaseNode, TNode, TResult>.VisitUnhandledNode Method ​
Definition ​
Called to visit a node that is not of type TNode. Throws an InvalidOperationException by default; override to return a fallback value instead.
c#
protected virtual TResult? VisitUnhandledNode(TContext? context, TBaseNode node);Parameters ​
| Name | Type | Description |
|---|---|---|
context | TContext | The context object. |
node | TBaseNode | The node being visited. |
Returns ​
TResult
The result of visiting node.