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