Type Conversion
suggest changeRemarks
Type conversion changes a value from one type to another. In C#, there are two forms:
Implicit type conversion - These conversions are performed by C# in a type-safe manner. For example, conversions from smaller to larger integral types, and conversions from derived classes to base classes.
Explicit type conversion - These conversions are written by the programmer with a cast operator.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents