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 the difference between constants and read-only variables?
How can you instantiate a tuple?
How to create multiple inheritance in c#, with example?
Which dll is required to translate xml to sql in internet information server (iis)?
Define code access security (cas)?
What is the difference between function and stored procedure?
what will do to avoid prior case?
Will it go to finally block if there is no exception happened?
Explain what is the difference between encrypting a password and applying a hashing?
Explain me what is an anonymous method and how is it different from a lambda expression?
What are three common acronyms used in .net, and what do they stand for?
How to use datagrid value in select statements where condition ,if cell is hyperlink bounded column?
What are an object and a class?
Please explain what are an object and a class?
What is managed code execution?