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 |
Do you need microsoft visual c++?
What is the difference between Undo and Redo?
What is the difference between pointer and reference?
7 Answers IBM, Microsoft, Tech Mahindra,
What is microsoft visual c++ 2005 redistributable?
Do I need the microsoft visual c++?
What is a transparent image?
What is the difference between serialization and deserialization?
4 Answers Cap Gemini, HCL, MBT,
Is it safe to uninstall microsoft visual c++ 2008 redistributable?
What is the difference between an MLE and an SLE?
What Is Your Greatest Weakness?
4 Answers Apple, Infosys, IOCL, Servion, TCS, VisionTek,
What is microsoft visual c++ 2008 redistributable?
How to Use mfc71d.dll not mfc71.dll ?