Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Decimal Implicit Conversion Operators

Defines an implicit conversion of the value of a type to a Decimal value.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public operator Static member Implicit(Byte to Decimal) Defines an explicit conversion of an 8-bit unsigned integer to a Decimal.
Public operator Static member Implicit(Char to Decimal) Defines an explicit conversion of a Unicode character to a Decimal.
Public operator Static member Implicit(Int16 to Decimal) Defines an explicit conversion of a 16-bit signed integer to a Decimal.
Public operator Static member Implicit(Int32 to Decimal) Defines an explicit conversion of a 32-bit signed integer to a Decimal.
Public operator Static member Implicit(Int64 to Decimal) Defines an explicit conversion of a 64-bit signed integer to a Decimal.
Public operator Static member Implicit(SByte to Decimal) Defines an explicit conversion of an 8-bit signed integer to a Decimal.
Public operator Static member Implicit(UInt16 to Decimal) Defines an explicit conversion of a 16-bit unsigned integer to a Decimal.
Public operator Static member Implicit(UInt32 to Decimal) Defines an explicit conversion of a 32-bit unsigned integer to a Decimal.
Public operator Static member Implicit(UInt64 to Decimal) Defines an explicit conversion of a 64-bit unsigned integer to a Decimal.
Top

The overloads of the Implicit method define the types from which the compiler can automatically convert a Decimal value without an explicit casting operator (in C#) or a call to a conversion function (in Visual Basic). They are widening conversions that do not involve data loss and do not throw an OverflowException exception.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.