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 diference between casting and converting?

Answer Posted / kiran vaidya

When you use Convert class, you have some predefined types
which are defined by .Net framework such as Convert.ToInt32
or Convert.ToString and so on. That means you can convert
whatever you want to only system defined types.

while in casting, you can have your own choices to convert
data. i.e. user defined types.

for eg. you have a class called Employee and you want to
convert some object to Employee, then the best way to do
this is casting.

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you know about device context?

880


Why do we use dataset in c#?

909


Explain attributes in c#?

788


What is data adapter in c#?

816


What are bitwise logical operators?

851


How can you write a class to restrict that only one object of this class can be created (Singleton class)?

879


What is a console device?

839


What is ado c#?

891


How can I make sure my c# classes will interoperate with other .net languages?

964


What is the use of nullable types in c#?

932


What are the classes contained in a single .NET DLL ?

875


Are value types sealed?

925


Explain the process of polymorphism with an example?

850


What are destructors in C#?

1459


What is autopostback in c#?

890