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