Exemplo n.º 1
0
 static public UINodeInfoInTree[] MatchingNodesFromSubtreeBreadthFirst(
     this UINodeInfoInTree rootNode,
     Func <UINodeInfoInTree, bool> predicate,
     int?resultCountMax = null,
     int?depthBoundMax  = null,
     int?depthBoundMin  = null,
     bool omitNodesBelowNodesMatchingPredicate = false) =>
 rootNode.ListPathToNodeFromSubtreeBreadthFirst(
     predicate,
     resultCountMax,
     depthBoundMax,
     depthBoundMin,
     omitNodesBelowNodesMatchingPredicate)
 ?.Select(astMitPfaad => astMitPfaad.LastOrDefault()).ToArray();