Class DataValueExtensions
Extension methods for IDataValue.
public static class DataValueExtensions
- Inheritance
-
DataValueExtensions
- Inherited Members
Methods
ToNullableDouble(IDataValue)
Converts a data value to a nullable double-precision floating-point number.
public static double? ToNullableDouble(this IDataValue dataValue)
Parameters
dataValueIDataValueThe data value.
Returns
- double?
A nullable double-precision floating-point number that is equivalent to
dataValue.
Exceptions
- ArgumentNullException
dataValueis null.- FormatException
dataValueis not in an appropriate format for a double type.- InvalidCastException
dataValuedoes not implement the IConvertible interface.- InvalidCastException
The conversion is not supported.
- OverflowException
dataValuerepresents a number that is less than MinValue or greater than MaxValue.