Converts an object value that is DBNull or System.Int16 to an equivalent NullableInt16 value.
Null if x is DBNull otherwise a NullableInt16 constructed from x.
| Exception Type | Condition |
|---|---|
| ArgumentNullException | x is null. |
| InvalidCastException | x is neither DBNull or of type Int16. |
DBNullConvert Class | NullableTypes.HelperFunctions Namespace