Skip to content

Listener<TNode>.ShouldListenToDescendants Method ​

Overloads ​

NameDescription
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.

ShouldListenToDescendants(NoContext, TNode) ​

Return a value indicating whether child nodes should be listened to or not. Defaults to true.

c#
protected sealed override bool ShouldListenToDescendants(NoContext context, TNode node);

View source

Parameters ​

NameTypeDescription
contextNoContextThe context object.
nodeTNodeThe node whose children should be listened to or not.

Returns ​

Boolean

true if child nodes should be listened to, false otherwise.

ShouldListenToDescendants(TNode) ​

Return a value indicating whether child nodes should be listened to or not. Defaults to true.

c#
protected new virtual bool ShouldListenToDescendants(TNode node);

View source

Parameters ​

NameTypeDescription
nodeTNodeThe node whose children should be listened to or not.

Returns ​

Boolean

true if child nodes should be listened to, false otherwise.