Node<TNode>.ThisAndAncestorsOfType Method
Definition
Lazily enumerates over the Ancestors of this node, returning only ancestors of the specified type.
public IEnumerable<TAncestor> ThisAndAncestorsOfType<TAncestor>()
where TAncestor : TNode;
Type Parameters
Name | Description |
---|---|
TAncestor | The type of ancestors to return. |
Returns
Last modified: 09 September 2024