Skip to content

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);

View source

Parameters ​

NameTypeDescription
contextTContextThe context object.
nodeTBaseNodeThe node being visited.

Returns ​

TResult

The result of visiting node.