Information Technology Reference
In-Depth Information
This code produces the following output:
i: 10, oi: 10, j: 10
Attempting to unbox a value to a type other than the original type raises an
InvalidCastException exception.
The Unboxing Conversions
Figure 18-25 shows the unboxing conversions.
Figure 18-25. The unboxing conversions
Search WWH ::




Custom Search