Page Stats
Visitor: 180
Type Conversion in C#.Net
Type conversion or type casting is a process of converting a value of one data type into another data type is known as type conversion. It has two forms:
1. Implicit Conversion – Assigning value of smaller data type into larger data type is known as implicit conversion. Implicit conversion requires no work and no additional code.
2. Explicit Conversion – Assigning value of larger data type into smaller data type is known as explicit conversion.
Checked and Unchecked is used to check for overflow checking context for an expression.
Boxing and Un-Boxing: Boxing is used to Process of a converting a value type to a reference type. And the reverse process is called Unboxing.