Question:

What is the difference between CType and Directcast in C#?

Answer:

  • CType is used for conversion between type and the expression.
  • Directcast is used for converting the object type which requires run time type to be the same as specified type.

Keywords:

© 2017 QuizBucket.org