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 il and c#?
What are the authentication methods in .net?
Can I write il programs directly?
How to prepare parametrized (with more than one parameters) crystal report.pls tell me the code procedure, if any body can?
What is the microsoft .net?
Why is .net used?
What are asp.net authentication providers and iis security?
object is physical and class is logical..here class is not occupying any memory as our definition of class but i got a question then the class where it stores if it is not occupying any memory....
What are the purposes of using .net?
What is Flyout Design Pattern in .NET?
If we write any code for DataGrid methods, what is the access specifier used for that methods in the code behind file and why?
How to get the number after decimal point in .net?
What is concurrency? How will you avoid concurrency when dealing with dataset?
Explain asp.net?
Is .net core the future?