Login
Remember
Register
Ask a Question
What is the difference between CType and Directcast in C#?
0
votes
asked
Oct 18, 2019
in
C Sharp
by
Robin
What is the difference between CType and Directcast in C#?
ctype-delegates
ctype-
delegates
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Oct 18, 2019
by
rajeshsharma
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.
...