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 Boxing and Unboxing in C#

Answer Posted / preetha

Boxing is a process in which object instances are created
and copy values in to that instance.
Unboxing is vice versa of boxing operation where the value
is copied from the instance in to appropriate storage
location.
Below is sample code of boxing and unboxing where integer
data type is converted in to object
and then vice versa.
Dim x As Integer
83
Dim y As Object
x = 10
‘ boxing process
y = x
‘ unboxing process
x = y

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is microsoft visual c++ redistributable and do I need it?

1058


What is a copy constructor? What is the need for it?

1056


What is a thread (VC++) and state the difference between Cmutex and Csemaphone?

1091


What is vc++ programming?

1172


Is microsoft visual c++ a virus?

1235


What is the difference between an MLE and an SLE?

6632


How do I get rid of microsoft visual c++ runtime library error?

1224


What is microsoft visual c++ runtime library error?

1139


What is dao in vc ++?

972


Explain the significance of initapplication() in vc++.

1178


How many microsoft visual c++ do you need?

1174


What is difference between c++ and vc++?

1310


Where can I find microsoft visual c++ on my computer?

1068


How do I change visual code font?

1167


Explain pointer to the constant and constant pointer?

989