Skip to content

INodeFactory<TNode> Interface ​

Definition ​

Factory to create nodes for a tree.

c#
public abstract interface INodeFactory<TNode>
   where TNode : Node<TNode>

View source

Type Parameters ​

NameDescription
TNodeThe base type of nodes to create.

Methods ​

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.