Home / DeveloperSection / Interviews / difference between directcast and ctype?
You haven’t finished your post yet. Are you sure you want to leave and discard your draft?
Can you answer this question?
Anonymous User
DirectCast is used to convert the type of an object that requires the run-time type to be the same as the specified type in DirectCast.
Ctype is used for conversion where the conversion is defined between the expression and the type.
You have need login or register for voting of answers or question.
Anonymous User
02-Apr-2018DirectCast is used to convert the type of an object that requires the run-time type to be the same as the specified type in DirectCast.
Ctype is used for conversion where the conversion is defined between the expression and the type.