NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Decimal.ToDecimal

Converts this instance of a Decimal to a Decimal format.

[Visual Basic]
Overridable Public Function ToDecimal() As Decimal
[C#]
public virtual Decimal ToDecimal();
[C++]
public: virtual Decimal ToDecimal();
[JScript]
public function ToDecimal() : Decimal;

Return Value

A Decimal.

Exceptions

Exception Type Condition
InvalidCastException is thrown if it doesn't return a Decimal.

Remarks

The ToDecimal method returns a decimal.

This method implements IConvertible, which replaced IValue. This method is used to obtain the type code for a specified object. (See Convert and Value for more information about conversions; see the Type for more information about types.)

See Also

Decimal Structure | Decimal Members | System Namespace