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