DataTypeCodeGenerator Constructor |
Namespace: CMS.FormEngineAssembly: CMS.FormEngine (in CMS.FormEngine.dll) Version: 13.0.131
Syntax 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 Exception | Condition |
---|
ArgumentNullException | Thrown when dataTypeNameRetriever or validationHelperMethodNameRetriever or defaultValueRetriever are null. |
See Also