Table of Contents

Constructor DelegateTreeBuilder

Namespace
Terminal.Gui.Trees
Assembly
Terminal.Gui.dll

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

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

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

Parameters

childGetter Func<T, IEnumerable<T>>

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>>
canExpand Func<T, bool>