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.
public sealed class DefaultNodeFactory<TNode> : INodeFactory<TNode>
where TNode : Node<TNode>
Type Parameters
Name | Description |
---|---|
TNode | The base type of nodes to create. |
Fields
Name | Description |
---|---|
Singleton instance of DefaultNodeFactory<TNode>. |
Methods
Name | Description |
---|---|
Creates a node of the specified type. The node must inherit from |
Last modified: 22 November 2024