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
dataValue
IDataValueThe data value.
Returns
- double?
A nullable double-precision floating-point number that is equivalent to
dataValue
.
Exceptions
- ArgumentNullException
dataValue
is null.- FormatException
dataValue
is not in an appropriate format for a double type.- InvalidCastException
dataValue
does not implement the IConvertible interface.- InvalidCastException
The conversion is not supported.
- OverflowException
dataValue
represents a number that is less than MinValue or greater than MaxValue.