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

How boxing and unboxing occures in memory?

1158


What is difference between system.string and system.stringbuilder classes?

1158


What is "microsoft intermediate language" (msil)?

1018


What is meant by globalization?

1018


Please explain what do the terms “boxing” and “unboxing” mean?

1005


How to prepare parametrized (with more than one parameters) crystal report.pls tell me the code procedure, if any body can?

956


What is connection pooling and how do you make your application use it?

1023


What are Satellite Assemblies? How you will create this? How will you get the different language strings?

1995


Differences between dll and exe?

1188


Explain the garbage collection process?

1060


What is the difference between "using system.data;" and directly adding the reference from "add references dialog box"?

1115


Explain the process of compilation in .NET?

1097


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....

2085


If any body working in Infosys, please can u give me the referense to that company because i hered that their is openings for freshers with referal..

1953


What is the best way to crack the certification?

1845