An example of a ctype and directcast.

Submitted by: Administrator
In the preceding example, the run-time type of Q is Double. CType succeeds because Double can be converted to Integer, but DirectCast fails because the run-time type of Q is not already Integer
Submitted by: Administrator

Read Online C# (Sharp) Programming Language Job Interview Questions And Answers