object box = 123; int i = (int)box;conceptually correspond to
object box = new int_Box(123); int i = ((int_Box)box).value;end example] Paragraph 31 For an unboxing conversion to a given value-type to succeed at run-time, the value of the source operand must be a reference to an object that was previously created by boxing a value of that value-type. 2 If the source operand is null or a reference to an incompatible object, a System.InvalidCastException is thrown.
| |
Jagger Software Ltd | |
Company # 4070126 | |
VAT # 762 5213 42 |