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 |
---|---|
HashSet<T> |
Type Parameters
Name | Description |
---|---|
T |