What is the Difference between directcast and ctype?

Answer Posted / suresh

Direct cast: Supports only reference type conversions
it throws exception

CType cast: supports only Value type conversions

Is This Answer Correct ?    7 Yes 22 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is typical about a windows process in regards to memory allocation in dot net?

558


Please explain what is the difference between a class and an object?

566


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?

507


What is .net code security?

562


Difference between abstract class and interface in .net?

549






Explain what is the difference between response.redirect & server.transfer?

542


Explain the difference between the stack and the heap?

528


How viewstate is being formed and how it is stored on client in .net?

537


What is Polymorphism? How does VB.NET/C# achieve polymorphism?

2469


What is a .DLL and .EXE files called in .NET?

593


what is the meaning silverligt control

1667


How is .net able to support a lot of languages?

534


What is Event Bubbling in .NET?

651


What is the difference between a debug and release build?

578


Tell me what is a “jagged array”?

578