Skip to content

Listener<TNode> Class ​

Definition ​

A Listener<TContext, TNode> that does not take a context object. Any state the listener needs must be held by the listener itself.

c#
public abstract class Listener<TNode> : Listener<NoContext, TNode>
   where TNode : Node<TNode>

View source

Type Parameters ​

NameDescription
TNodeThe type of the nodes to listen to.

Constructors ​

NameDescription
Listener()

Methods ​

NameDescription
AfterListenToNode(NoContext, TNode)Called after a node and its descendants have been listened to.
AfterListenToNode(TNode)Called after a node and its descendants have been listened to.
BeforeListenToNode(NoContext, TNode)Called before a node and its descendants are listened to.
BeforeListenToNode(TNode)Called before a node and its descendants are listened to.
Listen(TNode)Listen to the specified node and its descendants.
ListenToNode(NoContext, TNode)Called when the node is listened to.
ListenToNode(TNode)Called when the node is listened to.
ShouldListenToDescendants(NoContext, TNode)Return a value indicating whether child nodes should be listened to or not. Defaults to true.
ShouldListenToDescendants(TNode)Return a value indicating whether child nodes should be listened to or not. Defaults to true.