MrKWatkins.Ast Help

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

Instance

Singleton instance of DefaultNodeFactory<TNode>.

Methods

Name

Description

Create(Type)

Creates a node of the specified type. The node must inherit from TNode.

Last modified: 09 September 2024