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 the difference between debug.write and trace.write? When should each be used?
How can we use Web API with ASP.NET Web Form?
What do you mean by authorization?
What is caching? What are different ways of caching in asp.net?
What are the Types of session management in ASP.NET
What are custom controls?
explain code with multi inhertance
How do I publish my asp.net application to my isp's web server?
What is the difference between viewstate and hidden field in asp.net?
How will you do windows authentication and what is the namespace? If a user is logged under integrated windows authentication mode, but he is still not able to logon, what might be the possible cause for this? In ASP.Net application how do you find the name of the logged in person under windows authentication?
Explain diff between dataset and datareader?
What is httpresponse?
Which browsers support the xmlhttprequest object?
What are the asp.net security controls?
Explain automatic memory management in .net.