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.7.0.0 (5.7.0)
Syntax
protected virtual Object ConvertValueToDestinationType(
	Type destinationType,
	Object sourceValue,
	string fieldName
)

Parameters

destinationType
Type: SystemType
Type of the destination.
sourceValue
Type: SystemObject
The source value.
fieldName
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