Constructor DelegateTreeBuilder
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
childGetterFunc<T, IEnumerable<T>>Delegate that returns the children of a given object.
canExpandFunc<T, bool>Delegate that returns whether a given object can be expanded.