Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Implicit Conversion Operators

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 Supported by the XNA Framework Supported by Portable Class Library Implicit(Byte to Decimal) Defines an explicit conversion of an 8-bit unsigned integer to a Decimal.
Public operator Static member Supported by the XNA Framework Supported by Portable Class Library Implicit(Char to Decimal) Defines an explicit conversion of a Unicode character to a Decimal.
Public operator Static member Supported by the XNA Framework Supported by Portable Class Library Implicit(Int16 to Decimal) Defines an explicit conversion of a 16-bit signed integer to a Decimal.
Public operator Static member Supported by the XNA Framework Supported by Portable Class Library Implicit(Int32 to Decimal) Defines an explicit conversion of a 32-bit signed integer to a Decimal.
Public operator Static member Supported by the XNA Framework Supported by Portable Class Library Implicit(Int64 to Decimal) Defines an explicit conversion of a 64-bit signed integer to a Decimal.
Public operator Static member Supported by the XNA Framework Supported by Portable Class Library Implicit(SByte to Decimal) Defines an explicit conversion of an 8-bit signed integer to a Decimal.
Public operator Static member Supported by the XNA Framework Supported by Portable Class Library Implicit(UInt16 to Decimal) Defines an explicit conversion of a 16-bit unsigned integer to a Decimal.
Public operator Static member Supported by the XNA Framework Supported by Portable Class Library Implicit(UInt32 to Decimal) Defines an explicit conversion of a 32-bit unsigned integer to a Decimal.
Public operator Static member Supported by the XNA Framework Supported by Portable Class Library 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.

Show:
© 2015 Microsoft