This documentation is archived and is not being maintained.

6.1 Implicit conversions

Visual Studio .NET 2003

The following conversions are classified as implicit conversions:

  • Identity conversions
  • Implicit numeric conversions
  • Implicit enumeration conversions
  • Implicit reference conversions
  • Boxing conversions
  • Implicit constant expression conversions
  • User-defined implicit conversions

Implicit conversions can occur in a variety of situations, including function member invocations (Section 7.4.3), cast expressions (Section 7.6.6), and assignments (Section 7.13).

The pre-defined implicit conversions always succeed and never cause exceptions to be thrown. Properly designed user-defined implicit conversions should exhibit these characteristics as well.