Conversions

Although all data types are derived from System.Object, you still need to convert one data type to another. Specifically, you need to convert value data types to reference data type and vice versa. This enables access to the functions provided by specific types, using the properties of particular data types, and so on. Conversions between data types can be of two kinds, implicit or explicit.

Implicit Conversions

Implicit conversions are those conversions that do not need to be specified and are done without any command being expressly used. These are conversions that do not need a great deal of thought and planning and can be performed even without careful observation. They do not result in a loss of or damage to information. These ...

Get Special Edition Using C# now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.