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's typical about a windows process in regards to memory allocation in .net?

1127


When we use windows api in .net is it managed or unmanaged code?

1091


Can you explain what do you understand about web service?

1121


What is il and c#?

1126


What is RPC? What is the use of it?

1165


Is there any inbuilt tool or command provided by .NET to view the code inside the assembly?

998


How many types of transactions are there in com + .net ?

1075


Please explain what is immutability, what is it for and how is it codified?

1011


Explain the difference between the stack and the heap?

978


Please explain what are an object and a class?

966


Is .net a programming language?

967


which method do you use to redirect the user to another page without performing a round trip to the client? How?

875


Explain what is the difference between response.redirect & server.transfer?

1096


What is Event - Delegate? clear syntax for writing a event delegate

2029


Explain different types of html, web and server controls.

1009