Skip to content

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.

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.

public virtual T Create<T>()
   where T : TNode;

View source

Type Parameters

Name Description
T The type of node to create.

Returns

T

The new node.