Skip to content

Children<TNode>.Add Method ​

Overloads ​

NameDescription
Add(TNode)Adds a node to the collection and assigns its Parent property.
Add(IEnumerable<TNode>)Adds nodes to the collection and assigns their Parent properties.
Add(ICollection<TNode>)Adds nodes to the collection and assigns their Parent properties.
Add(TNode[])Adds nodes to the collection and assigns their Parent properties.

Add(TNode) ​

Adds a node to the collection and assigns its Parent property.

c#
public void Add(TNode node);

View source

Parameters ​

NameTypeDescription
nodeTNodeThe node to add.

Add(IEnumerable<TNode>) ​

Adds nodes to the collection and assigns their Parent properties.

c#
public void Add(IEnumerable<TNode> nodes);

View source

Parameters ​

NameTypeDescription
nodesIEnumerable<TNode>The nodes to add.

Add(ICollection<TNode>) ​

Adds nodes to the collection and assigns their Parent properties.

c#
public void Add(ICollection<TNode> nodes);

View source

Parameters ​

NameTypeDescription
nodesICollection<TNode>The nodes to add.

Add(TNode[]) ​

Adds nodes to the collection and assigns their Parent properties.

c#
public void Add(params TNode[] nodes);

View source

Parameters ​

NameTypeDescription
nodesTNode[]The nodes to add.