You are implementing a method named Calculate that performs conversions between value types and reference types. The following code segment implements the method. (Line numbers are included for reference only.)
You need to ensure that the application does not throw exceptions on invalid conversions.
Which code segment should you insert at line 04?
Explicit cast of object into float, and then another Explicit cast of float into int.
Currently there are no comments in this discussion, be the first to comment!