MetalamaAPI documentationAspect APIMetalama.​Framework.​Code.​CollectionsEnumerable­ExtensionsSelect­Many­Recursive
Open sandboxFocus

EnumerableExtensions.SelectManyRecursive Method

SelectManyRecursive<T>(IEnumerable<T>, Func<T, IEnumerable<T>>, Boolean)

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
Boolean includeRoot
Returns
Type Description
List<T>
Type Parameters
Name Description
T