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 some of commonly used methods provided by iunknown.
What is iunknown? Explain some of commonly used methods provided by iunknown.
what is the difference between the codes written in the document class and view class
How can we use cmutex?
What is visual c++ runtime error?
What is vc++ redistributable?
How many microsoft visual c++ do you need?
Suppose multiple threads accessing a registry key at a time. In that case which synchronization object you will use?
What is the purpose of a C++ namespace?
What is microsoft visual c++ 2005 redistributable?
what is mean [] inc what is the use of include conio.h in c
What is a microsoft visual c++ 2008 redistributable?