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