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
How will you do Redo and Undo in a TextControl?
What is advantage of code behind coding in ASP.NET?
Explain server-side scripting?
What are the cookies types in asp.net?
What is the web.config file in asp?
What is xaml? Are xaml file compiled or built on runtime?
What is application and session in asp.net?
Why web api is better than wcf?
What is viewstate information stored?
What kind of data we can store in viewstate?
What is globalization and localization in asp net?
What is data caching?
Describe the method to create a permanent cookie?
Using code explain Configuration Management
Is viewstate enabled by default?