Skip to content

DefaultNodeFactory<TNode> Class ​

Definition ​

Default implementation of INodeFactory<TNode>. Nodes to be created must have a parameterless constructor which can be public or non-public.

c#
public sealed class DefaultNodeFactory<TNode> : INodeFactory<TNode>
   where TNode : Node<TNode>

View source

Type Parameters ​

NameDescription
TNodeThe base type of nodes to create.

Fields ​

NameDescription
InstanceSingleton instance of DefaultNodeFactory<TNode>.

Methods ​

NameDescription
Create(Type)Creates a node of the specified type. The node must inherit from TNode.