C#/XAML for HTML5 Documentation
C#/XAML for HTML5 Documentation
Reference
System
Convert Class
Convert Methods
ToDouble Method
ToDouble Method (Boolean)
ToDouble Method (Byte)
ToDouble Method (Char)
ToDouble Method (DateTime)
ToDouble Method (Decimal)
ToDouble Method (Double)
ToDouble Method (Int16)
ToDouble Method (Int32)
ToDouble Method (Int64)
ToDouble Method (Object)
ToDouble Method (SByte)
ToDouble Method (Single)
ToDouble Method (String)
ToDouble Method (UInt16)
ToDouble Method (UInt32)
ToDouble Method (UInt64)
ToDouble Method (Object, IFormatProvider)
ToDouble Method (String, IFormatProvider)
Convert
ToDouble Method (DateTime)
Calling this method always throws
InvalidCastException
.
Namespace:
System
Assembly:
mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
Copy
public
static
double
ToDouble
(
DateTime
value
)
Parameters
value
Type:
System
DateTime
The date and time value to convert.
Return Value
Type:
Double
This conversion is not supported. No value is returned.
Exceptions
Exception
Condition
InvalidCastException
This conversion is not supported.
See Also
Reference
Convert Class
ToDouble Overload
System Namespace