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