EAPUtilToInt Method (Object, Int32) |
Convert an object to an int handling the case when the object is DBNull.
When the object is null, the return value is the value of the defaultValue parameter.
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public static int ToInt(
Object value,
int defaultValue
)
Public Shared Function ToInt (
value As Object,
defaultValue As Integer
) As Integer
Parameters
- value
- Type: SystemObject
The object to convert - defaultValue
- Type: SystemInt32
The value to return if the object is DBNull.
Return Value
Type:
Int32The converted object as an integer.
See Also