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
Is Driver Script any how related to AOM?
Explain about the Common Language Runtime?
What is the transport protocol you use to call a seb service soap?
I have a problem in installing visual Studio 2008 on PC that have Celeron Processor ? afterAll InstallionFaied . Pls suggest me . Is it possible or not .if Yes then How ?
Which namespace is used to support multithearding in .NET?
If any body working in Infosys, please can u give me the referense to that company because i hered that their is openings for freshers with referal..
What is finalize method in .net?
Difference between value type & reference types ?
What is Polymorphism? How does VB.NET/C# achieve polymorphism?
Explain about Behavioral design pattern?
Can you explain what do you understand about web service?
What do you mean by Code Access Security in .NET?
What is delegation in .net?
What's singlecall activation mode used for in .net?
What is the concept of inheritance and how it works in .net?