Show / Hide Table of Contents

Method TreeBase-1.Descendants


Overload

Gets all descendant nodes (direct children, their children and so on).

public IEnumerable<T> Descendants(bool andSelf = false, Func<T, bool> stepInto = null)
Parameters
andSelf  (bool)

Include this node. Default false.

stepInto  (Func<T, bool>)

If not null, the callback function is called for each descendant node that has childred. Let it return false to skip descendants of that node.

Returns
IEnumerable<T>