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 microsoft visual c++ redistributable and do I need it?
What is a copy constructor? What is the need for it?
What is a thread (VC++) and state the difference between Cmutex and Csemaphone?
What is vc++ programming?
Is microsoft visual c++ a virus?
What is the difference between an MLE and an SLE?
How do I get rid of microsoft visual c++ runtime library error?
What is microsoft visual c++ runtime library error?
What is dao in vc ++?
Explain the significance of initapplication() in vc++.
How many microsoft visual c++ do you need?
What is difference between c++ and vc++?
Where can I find microsoft visual c++ on my computer?
How do I change visual code font?
Explain pointer to the constant and constant pointer?