Method FlattenTree
FlattenTree<T>(T, Func<T, IEnumerable<T>>)
public static IEnumerable<T> FlattenTree<T>(T root, Func<T, IEnumerable<T>> getChildrenFunc)
Parameters
root
TgetChildrenFunc
Func<T, IEnumerable<T>>
Returns
- IEnumerable<T>
Type Parameters
T