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 |
How do you define a function in vc++?
TO start the build process in Developer Studio Which keyboard function is used ?
What is the purpose of declaring a variable as unsigned?
Explain pointer to the constant and constant pointer?
What is the difference between pointer and reference?
7 Answers IBM, Microsoft, Tech Mahindra,
How a dll will be sharable by more than one exe?
how i can design a user interface in vc++ for getting inputs from users
What is microsoft visual c++ 2017 redistributable?
What is a mnemonic?
How to create a DLL in C++.net 2005 which we can use in VB 6.0 application ?
What is microsoft visual c++ 2013 redistributable?
What is iunknown?