Table of Contents

Constructor DelegateTreeBuilder

Namespace
Terminal.Gui.Views
Assembly
Terminal.Gui.dll

DelegateTreeBuilder(Func<T, IEnumerable<T>>, Func<T, bool>)

Constructs an implementation of ITreeBuilder<T> that calls the user defined method childGetter to determine children and canExpand to determine expandability.

public DelegateTreeBuilder(Func<T, IEnumerable<T>> childGetter, Func<T, bool> canExpand)

Parameters

childGetter Func<T, IEnumerable<T>>

Delegate that returns the children of a given object.

canExpand Func<T, bool>

Delegate that returns whether a given object can be expanded.