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