Click or drag to resize
LLBLGenProDataSourceViewBaseConvertValueToDestinationType Method
Converts the passed in sourcevalue to the destination type. Used when converting field values in forms and parameter values in filters.

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses.Web (in SD.LLBLGen.Pro.ORMSupportClasses.Web.dll) Version: (5.3.0)
protected virtual Object ConvertValueToDestinationType(
	Type destinationType,
	Object sourceValue,
	string fieldName


Type: SystemType
Type of the destination.
Type: SystemObject
The source value.
Type: SystemString
Name of the field.

Return Value

Type: Object
null if fieldName!= null and fieldName is part of the fieldNamesKeepEmptyStringAsValue collection and sourceValue is an empty string. Otherwise the sourcevalue converted to the destination type. If no conversion is possible, null is returned.
See Also