What is the difference between Boxing and Unboxing in C#
Answer / 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 |
Explain the important features of vc++?
What is a copy constructor? What is the need for it?
What is microsoft visual c++ 2008 redistributable and do I need it?
What keyboard editor command is used for Undo?
What is the difference between the client and non-client areas?
How do I create an mfc application in vc++?
How do I reinstall microsoft visual c++?
difference between assert and verify.
How do I uninstall visual c++?
What is visual c++ used for?
What is microsoft visual c++ 2005 redistributable?
Is it ok to uninstall microsoft visual c++?