Skip to content

Children<TNode>.OfType Method ​

Definition ​

Lazily enumerates over all nodes in this collection of the specified type.

c#
public IEnumerable<TChild> OfType<TChild>()
   where TChild : TNode;

View source

Type Parameters ​

NameDescription
TChildThe type of the nodes to return.

Returns ​

IEnumerable<TChild>

A lazy enumeration of all nodes in this collection of type TChild.