What is the Difference between directcast and ctype?
Answer Posted / aravindreddy
DirectCast requires the run-time type of an object variable
to bethe same
as the specified type.The run-time performance
ofDirectCast is better
than that of CType, if the specified type and the run-time
typeof the
expression are the same.
Ctype works fine if there is a valid conversion defined
between the
expression and the type.
Is This Answer Correct ? | 16 Yes | 2 No |
Post New Answer View All Answers
What is garbage collection in .net? Explain the garbage collection process?
Explain the difference between task and thread in .net?
What are the new 2.0 features useful for?
What is Event - Delegate? clear syntax for writing a event delegate
How does u handle this COM components developed in other programming languages in .NET?
What is concurrency? How will you avoid concurrency when dealing with dataset?
What is the use of UML in .Net
What's the problem with .net generics?
How to debug failed assembly binds?
Is .net core stable?
How is .net able to support a lot of languages?
Explain me why do we use msmq?
How to view a .NET assembly?
The project which you have made, which methodology did you use?
What is the microsoft .net?