What is Boxing and Unboxing?
Answer Posted / eduardo belmonte
Boxing is the process of converting value type to reference
type.
Unboxing is the process of converting from a reference type
to a value type.
Both are slow and should be avoided when possible or
unneeded.
Dim st AS String
Dim obj As Object
Dim n As Integer = 5
st = n ' Boxing happens
obj = n ' Boxing happens
n = st ' Unboxing happens
n = obj ' Unboxing happens
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
What is cookies cache and session?
Which two new properties are added in asp.net 4.0 page class?
Is asp.net and .net same?
Explain how cookies work.
Hi All, Im an MCA holder with 3+ years of experience in asp.net. Now i want to move to some good government job. I have no idea about different categories of exams held & which one can be applicable for my education background. I have done B.A with MCA. Please help me out with your valuable suggestions. I would be very grateful. Thanks Anuj
What is Dynamic Web and discuss its usage with the help of real life examples?
What is data binding in asp net?
How should I destroy my objects in asp.net?
What is the used of "ispostback" property?
What is server infrastructure & server components?
what is the difference between response.write() and response.output.write()?
Explain the difference between response.redirect vs server.transfer
What does asp stand for in asp.net?
Differentiate between a page theme and a global theme?
How does u call and execute a sp in .net?