Find Method
Definition
- Namespace
- Cuemon.Extensions.Runtime
- Assemblies
- Cuemon.Extensions.Core.dll
Find<T>(IHierarchy<T>, Func<IHierarchy<T>, bool>)
Retrieves all nodes that match the conditions defined by the function delegate match.
public static IEnumerable<IHierarchy<T>> Find<T>(IHierarchy<T> hierarchy, Func<IHierarchy<T>, bool> match)
Parameters
hierarchyIHierarchy<T>The IHierarchy<T> implementation to perform the operation upon.
matchFunc<IHierarchy<T>, bool>The function delegate that defines the conditions of the nodes to search for.
Returns
- IEnumerable<IHierarchy<T>>
An IEnumerable<T> sequence containing all nodes that match the conditions defined by the specified predicate, if found.
Type Parameters
TThe type of the instance that this node represents.