Answer Posted / maloy.adhikari
Boxing is the process of converting a value type to the
type object or to any interface type implemented by this
value type. When the CLR boxes a value type, it wraps the
value inside a System.Object and stores it on the managed
heap. Unboxing extracts the value type from the object. In
the following example, the integer variable i is boxed and
assigned to object o.
Exam::
int i = 123;
object o = (object)i; // boxing
...........
o = 123;
i = (int)o; // unboxing
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Explain advantages of caching?
What is data cache in sql server?
Explain the different types of directives in .net?
Explain how asp.net different from asp?
Explain the main function of razor in asp.net? : asp.net mvc
What is Partial PostBack in ASP.NET?
Explain the difference between array and linkedlist?
Explain Optimization technique description?
Can you explain page lifecycle in net?
What is preprocessor in .net?
What is a SESSION and APPLICATION object?
What is the application pool?
How can we make sure that Web API returns JSON data only?
If you are using components in your application, how can you handle exceptions raised in a component?
How to disable disable browser's Back button in asp.net (JavaScript)?