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

► Click here to show 1 Answer

0 votes
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