INodeFactory<TNode>.Create Method
Overloads
Name | Description |
---|---|
Creates a node of the specified type. The node must inherit from | |
Creates a node of the specified type. |
Create(Type)
Creates a node of the specified type. The node must inherit from TNode
.
public abstract TNode Create(Type nodeType);
Parameters
Name | Type | Description |
---|---|---|
nodeType | The type of node to create. |
Returns
TNode
The new node.
Create<T>()
Creates a node of the specified type.
public virtual T Create<T>()
where T : TNode;
Type Parameters
Name | Description |
---|---|
T | The type of node to create. |
Returns
T
The new node.
Last modified: 22 November 2024