Open sandboxFocus

Method SelectManyRecursive

SelectManyRecursive<T>(IEnumerable<T>, Func<T, IEnumerable<T>?>, bool)

Declaration
public static List<T> SelectManyRecursive<T>(this IEnumerable<T> roots, Func<T, IEnumerable<T>?> getChildren, bool includeRoot = false) where T : class
Parameters
Type Name Description
IEnumerable<T> roots
Func<T, IEnumerable<T>> getChildren
bool includeRoot
Returns
Type Description
List<T>
Type Parameters
Name Description
T