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
What is vcredist?
What is microsoft visual c++ 2008 redistributable?
What is microsoft visual c++ 2015 redistributable?
Can I uninstall visual c++ 2005?
What is the use of microsoft visual c++ 2015 redistributable?
How do I create an mfc application in vc++?
difference between assert and verify.
How you build a project using Developer Studio?
Explain the advantages of cwinthread class.
How do I uninstall vc++ 2015?
What is visual c++ runtime error?
Do I need ms visual c++ on my computer?
How do I uninstall and reinstall microsoft visual c++ runtime libraries?
What is a microsoft visual c++ 2008 redistributable?
What is microsoft visual c++ 2010 x86 redistributable?