C#/XAML for HTML5 Documentation
C#/XAML for HTML5 Documentation
Reference
System
Convert Class
Convert Methods
ToDecimal Method
ToDecimal Method (Boolean)
ToDecimal Method (Byte)
ToDecimal Method (Char)
ToDecimal Method (DateTime)
ToDecimal Method (Decimal)
ToDecimal Method (Double)
ToDecimal Method (Int16)
ToDecimal Method (Int32)
ToDecimal Method (Int64)
ToDecimal Method (Object)
ToDecimal Method (SByte)
ToDecimal Method (Single)
ToDecimal Method (String)
ToDecimal Method (UInt16)
ToDecimal Method (UInt32)
ToDecimal Method (UInt64)
ToDecimal Method (Object, IFormatProvider)
ToDecimal Method (String, IFormatProvider)
Convert
ToDecimal 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
decimal
ToDecimal
(
DateTime
value
)
Parameters
value
Type:
System
DateTime
The date and time value to convert.
Return Value
Type:
Decimal
This conversion is not supported. No value is returned.
Exceptions
Exception
Condition
InvalidCastException
This conversion is not supported.
See Also
Reference
Convert Class
ToDecimal Overload
System Namespace