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

EnumerableExtensions.SelectManyRecursiveDistinct Method

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

Declaration
public static HashSet<T> SelectManyRecursiveDistinct<T>(this IEnumerable<T> roots, Func<T, IEnumerable<T>> getChildren, bool includeRoots = true)
where T : class
Parameters
Type Name Description
IEnumerable<T> roots
Func<T, IEnumerable<T>> getChildren
Boolean includeRoots
Returns
Type Description
System.Collections.Generic.HashSet<T>
Type Parameters
Name Description
T