Skip to content

ICompositeListenerBuilder<TBaseNode> Interface ​

Definition ​

Fluent interface to build a CompositeListener<TBaseNode>.

c#
public abstract interface ICompositeListenerBuilder<TBaseNode>
   where TBaseNode : Node<TBaseNode>

Type Parameters ​

NameDescription
TBaseNodeThe base type of all nodes in the tree.

Methods ​

NameDescription
ToListener()Builds the CompositeListener<TBaseNode>.
With(Listener<TBaseNode>)Add a listener for the base node type. Useful to provide a fallback listener when there is no listener for the specific node type registered.
With<TNode>(NodeListener<TBaseNode, TNode>)Add a listener for the specific node type TNode. This can be a base node type which will be used if there is no listener for the specific node type registered.