Class DataTypeCodeGenerationManager
- Namespace
- CMS.FormEngine
- Assembly
- CMS.FormEngine.dll
Class managing registration and usage of code generator for multiple field data types.
public static class DataTypeCodeGenerationManager
- Inheritance
-
objectDataTypeCodeGenerationManager
Methods
RegisterDataTypeCodeGenerator(string, Func<DataTypeCodeGenerator>)
Registers generatorInitializer
callback creating code generator for given dataType
.
public static void RegisterDataTypeCodeGenerator(string dataType, Func<DataTypeCodeGenerator> generatorInitializer)
Parameters
dataType
stringData type FieldDataType for which code generator is registered.
generatorInitializer
Func<DataTypeCodeGenerator>Callback for creating code generator object.
Remarks
All generators has to be registered during initialization of Kentico modules as part of respective override of OnInit(ModuleInitParameters) method.
Exceptions
- ArgumentException
Thrown when
dataType
isnull
or empty.- ArgumentNullException
Thrown when
generatorInitializer
isnull
.