Gets an instance of the specified template type. Should be used with the Register directive.

Namespace: CodeSmith.Engine
Assembly: CodeSmith.Engine (in CodeSmith.Engine.dll) Version: 6.0.0.0 (7.0.0.15127)

Syntax

C#
public T Create<T>(
	bool shareContextData
)
where T : new(), CodeTemplate
Visual Basic
Public Function Create(Of T As {New, CodeTemplate}) ( 
	shareContextData As Boolean
) As T

Parameters

shareContextData
Type: System..::..Boolean
Share template context data with the child template instance.

Type Parameters

T

Return Value

Type: T
The CodeTemplate instance.

See Also