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

► Click here to show 1 Answer

0 votes
by
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.
Learn More with Madanswer

Related questions

0 votes
asked May 6, 2020 in C Sharp by SakshiSharma
...