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
Write some code using interfaces, virtual methods, and an abstract class`
What is rich control in asp.net?
What are cao and sao.
How you can stop the validation of ASP.NET controls from client side?
What are triggers of an updatepanel?
Explain the difference between response.redirect vs server.transfer
In asp.net, how can you validate drop down box?
Define application state variable and session state variable?
What is .net framework and what are the main components of it?
What is the appSettings Section in the web.config file?
8. Why do you want to work here?
In the Repeater control which way you can edit?
How to retrieve user name in case of Window Authentication?
Explain the difference between sql invalidation and sql notification.
What does the hotspot class in .net do?