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

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.
Click here to read more about Loan/Mortgage
Click here to read more about Insurance

Related questions

0 votes
asked May 6, 2020 in C Sharp by SakshiSharma
0 votes
asked Oct 18, 2019 in C Sharp by Robin
0 votes
asked Oct 18, 2019 in C Sharp by Robin
0 votes
asked Oct 18, 2019 in C Sharp by Robin
0 votes
asked Apr 9, 2020 in C Sharp by GeorgeBell
...