Skip to content

INodeFactory<TNode>.Create Method ​

Overloads ​

NameDescription
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 ​

NameTypeDescription
nodeTypeTypeThe 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;

View source

Type Parameters ​

NameDescription
TThe type of node to create.

Returns ​

T

The new node.