| Start |
|---|
| Conversion of boxed value types Boxed (opens new window) value types can only be unboxed into their original This can be avoided by first unboxing into the original |
Immutable reference type - string |
Value type - char |
Value type - short, int, long (signed 16 bit, 32 bit, 64 bit integers) It is also possible to make these types nullable, meaning that additionally to the usual values, null can be assigned, too. If a variable of a nullable type is not initialized, it will be null instead of 0. Nullable types are marked by adding a question mark (?) after the type. |
Value type - ushort, uint, ulong (unsigned 16 bit, 32 bit, 64 bit integers) It is also possible to make these types nullable, meaning that additionally to the usual values, null can be assigned, too. If a variable of a nullable type is not initialized, it will be null instead of 0. Nullable types are marked by adding a question mark (?) after the type. |
Value type - bool The bool keyword is an alias of System.Boolean. It is used to declare variables to store the Boolean values, |
| Comparisons with boxed value types If value types are assigned to variables of type This can be avoided by using the overloaded Alternatively, the same could be done by unboxing the |
Read Article
https://develop.horje.com/learn/1434/reference