Thursday, 31 March 2016

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

  • 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.

No comments:

Post a Comment