This method will be used to parse a default value for a property when a template is being instantiated.

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

Syntax

C#
Object ParseDefaultValue(
	PropertySerializerContext context,
	string defaultValue
)
Visual Basic
Function ParseDefaultValue ( 
	context As PropertySerializerContext,
	defaultValue As String
) As Object

Parameters

context
Type: CodeSmith.Engine..::..PropertySerializerContext
Context information of the target property.
defaultValue
Type: System..::..String
The default value.

Return Value

Type: Object
An object that will be assigned to the template property.

See Also