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 / narayan sahu(netx)

The difference between the two keywords is that CType
succeeds as long as there is a valid conversion defined
between the expression and the type, whereas DirectCast
requires the run-time type of an object variable to be the
same as the specified type. If the specified type and the
run-time type of the expression are the same, however, the
run-time performance of DirectCast is better than that of
CType. DirectCast throws an InvalidCastException error if
the argument types do not match.

Is This Answer Correct ?    12 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is meant by localization?

1293


What versions of .net are there?

1119


Describe the Managed Execution Process?

2594


What are the types of assemblies in .net?

1145


What is the use com component in .net?

1028


Explain is the jit an interpreter?

1104


What is il and c#?

1186


Is the COM architecture same as .Net architecture? What is the difference between them (if at all there is)?

2052


Explain what is the difference between web application and enterprise application?

1090


What's singleton activation mode in .net?

1121


What is the use of common language runtime?

1109


What is a metadata in .net?

1157


What operating systems does the .net framework run on?

1071


Dynamic Fonts

1989


What is the difference between a class and an object, and how do these terms relate to each other?

1071