Categories

Oct 18, 2019 in C Sharp (C#)

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

1 Answer

Oct 18, 2019
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.
Click here to read more about C Sharp
Click here to read more about Insurance

Related questions

Madanswer
May 6 in C Sharp (C#)
Oct 18, 2019 in C Sharp (C#)
Oct 18, 2019 in C Sharp (C#)
...