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
System.Collections.Generic.IEnumerable<T> roots
System.Func<T, System.Collections.Generic.IEnumerable<T>> getChildren
System.Boolean includeRoot
Returns
Type Description
System.Collections.Generic.List<T>
Type Parameters
Name Description
T