This documentation is archived and is not being maintained.

20.2 Conversion Operators

Visual Studio .NET 2003

There are two conversion operators. They are unary operators.

  • op_Implicit
  • op_Explicit

By convention, op_Implicit should be defined when a conversion between two types does not lose information. Otherwise op_Explicit should be defined. Both are used for the two kinds of conversion operators supported by the common language runtime that are described in the following sections.

Show: