The following conversions are classified as explicit conversions:
All implicit conversions.
Explicit numeric conversions.
Explicit enumeration conversions.
Explicit nullable conversions.
Explicit reference conversions.
Explicit interface conversions.
Unboxing conversions.
Explicit dynamic conversions
User-defined explicit conversions.
Explicit conversions can occur in cast expressions (§7.7.6).
The set of explicit conversions includes all implicit conversions. This means that redundant cast expressions are allowed.
The explicit conversions that are not implicit conversions are conversions that cannot be proven to always succeed, conversions that are known to possibly lose information, and conversions across domains of types sufficiently different to merit explicit notation.
Do'stlaringiz bilan baham: |