Click or drag to resize

EAPConvertToInt16 Method (Object, Int16)

Convert an object to an int16 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 short ToInt16(
	Object value,
	short defaultValue
)

Parameters

value
Type: SystemObject
The object to convert
defaultValue
Type: SystemInt16
The value to return if the object is DBNull.

Return Value

Type: Int16
The converted object as an integer.
See Also