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
Does .net supports destructors concept?
Explain the difference between asp.net & vb.net and explain architecture?
What is the root class in .net?
What are situations when you register .NET assembly in GAC ?
Is it true that objects don't always get destroyed immediately when the last reference goes away?
What is connected and diconnected database ?
What is the transport protocol you use to call a seb service soap?
Explain soap and xml?
What is difference between system.string and system.stringbuilder classes?
A developer company sends dlls to the client. Some client is not happy current functionality, so request some modification. Developer made some changes and send new dll to all clients. Some client is happy with old version, tell me minimal change to so that neither clients get affected?
How does linq work?
What is a strong name in .net?
Explain attributes in dot net?
What is delegation in .net?
which methos do you invoke on the dataadapter control to load your generated dataset with data?