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
Explain the namespace classes used in asp.net mvc? : asp.net mvc
Explain the differences between clr & cts?
What is runat?
What is request and response in asp.net?
Describe Segmentation With Paging?
What is httpresponse?
When using the Pager object, inorder to know which page to go, which property you have to set to grid?
How can we apply themes to an asp.net application?
What are url fragments?
What is actually returned from server to the browser when a browser requests an .aspx file and the file is displayed?
Define the types of configuration files.
What is difference between or and orelse?
What is the difference between session and viewstate in asp.net?
Explain the disadvantages of viewstate?
How does http session work?