Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Elements of CAS

2137


Which file is taken by compiler when we have both file Application and Server Configuration file?

2058


Explain what is an interface and what is an abstract class? Please, expand by examples of using both. Explain why?

998


How inheritance works in .net?

974


Explain what is an anonymous method and how is it different from a lambda expression?

890


What is the use of UML in .Net

1034


Explain what is a delegate?

977


What is strong-typing versus weak-typing? Which is preferred?

1000


Can "this" be used within a static method?

1017


Difference between user groups and code groups

2327


Which dll is required to translate xml to sql in internet information server (iis)?

953


Difference between machine.config and web.config?

977


How boxing and unboxing occures in memory?

1093


What is the difference between function and stored procedure?

1046


Explain me what are the deferred execution and the immediate execution in linq?

1036