Skip to content

Children<TNode>.GetEnumerator Method ​

Definition ​

Returns an enumerator that iterates through the collection.

c#
public IEnumerator<TNode> GetEnumerator();

View source

Returns ​

IEnumerator<TNode>

An enumerator that can be used to iterate through the collection.

Remarks ​

Enumerating over children tries to accommodate changes to the collection whilst enumerating. However not all changes can be accommodated and an InvalidOperationException will be thrown if enumeration cannot continue.