Click or drag to resize
DataTypeCodeGenerator Constructor
Creates instance of a DataTypeCodeGenerator class for single data type.

Namespace: CMS.FormEngine
Assembly: CMS.FormEngine (in CMS.FormEngine.dll) Version: 13.0.131
Syntax
C#
public DataTypeCodeGenerator(
	Func<FormFieldInfo, string> dataTypeNameRetriever,
	Func<FormFieldInfo, string> validationHelperMethodNameRetriever,
	Func<FormFieldInfo, string> defaultValueRetriever,
	Func<FormFieldInfo, IEnumerable<string>> usingsRetriever = null,
	Func<FormFieldInfo, string> summaryRetriever = null
)

Parameters

dataTypeNameRetriever
Type: SystemFuncFormFieldInfo, String
Function retrieving default value of a given data type.
validationHelperMethodNameRetriever
Type: SystemFuncFormFieldInfo, String
Function retrieving name of method from ValidationHelper used for retrieving value of a given data type.
defaultValueRetriever
Type: SystemFuncFormFieldInfo, String
Function retrieving default value of a given data type.
usingsRetriever (Optional)
Type: SystemFuncFormFieldInfo, IEnumerableString
Function retrieving a list of namespaces used in using statements.
summaryRetriever (Optional)
Type: SystemFuncFormFieldInfo, String
Function retrieving text used in summary comment section.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when dataTypeNameRetriever or validationHelperMethodNameRetriever or defaultValueRetriever are null.
See Also