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.ORMSupportClassesAssembly: SD.LLBLGen.Pro.ORMSupportClasses.Web (in SD.LLBLGen.Pro.ORMSupportClasses.Web.dll) Version: 5.0.0.0 (5.0.0)
Syntax protected virtual Object ConvertValueToDestinationType(
Type destinationType,
Object sourceValue,
string fieldName
)
Protected Overridable Function ConvertValueToDestinationType (
destinationType As Type,
sourceValue As Object,
fieldName As String
) As Object
Parameters
- destinationType
- Type: SystemType
Type of the destination. - sourceValue
- Type: SystemObject
The source value. - fieldName
- Type: SystemString
Name of the field.
Return Value
Type:
Objectnull 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