Converts the current value to a Decimal based on the underlying type.
[Visual Basic] Overridable Public Function ToDecimal() As Decimal [C#] public virtual Decimal ToDecimal(); [C++] public: virtual Decimal ToDecimal(); [JScript] public function ToDecimal() : Decimal;
Exception Type | Condition |
---|---|
InvalidCastException | Always. |
Currently not implemented. Always throws an exception.