Click or drag to resize
DataTypeManagerConvertToSystemType Method
Converts the value to a proper data type

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 10.0.0
Syntax
C#
public static Object ConvertToSystemType(
	TypeEnum typeEnum,
	string typeValue,
	Object value,
	CultureInfo culture = null,
	bool nullIfDefault = false
)

Parameters

typeEnum
Type: CMS.DataEngineTypeEnum
Type to use
typeValue
Type: SystemString
Data type
value
Type: SystemObject
Value to convert
culture (Optional)
Type: System.GlobalizationCultureInfo
Culture to use for conversion
nullIfDefault (Optional)
Type: SystemBoolean
If true, and the resulting value is the default value, returns null

Return Value

Type: Object
See Also