Class DelegateTreeBuilder | Terminal.Gui v2 (original) (raw)

Namespace

Terminal.Gui

Assembly

Terminal.Gui.dll

Implementation of ITreeBuilder that uses user defined functions

public class DelegateTreeBuilder<T> : TreeBuilder<T>, ITreeBuilder<T>

Type Parameters

T

Inheritance

DelegateTreeBuilder

Implements

Inherited Members

Constructors

DelegateTreeBuilder(Func<T, IEnumerable>)

Constructs an implementation of ITreeBuilder that calls the user defined methodchildGetter to determine children

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

Constructs an implementation of ITreeBuilder that calls the user defined methodchildGetter to determine children and canExpand to determine expandability

Methods

CanExpand(T)

Returns whether a node can be expanded based on the delegate passed during construction

GetChildren(T)

Returns children using the delegate method passed during construction