TypedMapperNullableValue Method |
Returns null if the provided object is null or a blank/empty string, else the object itself.
The purpose is to allow blank/empty strings to be treated as null for casting to a nullable type.
Namespace:
NetQuarry.Data
Assembly:
EAP.Mapper (in EAP.Mapper.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax protected Object NullableValue(
Object val
)
Protected Function NullableValue (
val As Object
) As Object
Parameters
- val
- Type: SystemObject
The value.
Return Value
Type:
Objectnull if the object is null or a blank/empty string, else the original object.
See Also