Skip to content

Children<TNode>.LastOfType Method ​

Definition ​

Returns the last node in the collection of the specified type or throws otherwise.

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

View source

Type Parameters ​

NameDescription
TChildThe type of the node to return.

Returns ​

TChild

The last node if it is of the specified type.