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 can we update records in gridview?Is there any appropriate code for it?
How to display validation messages in one control?
List the types of authentication supported by asp.net?
What is Web API Routing?
What is the difference between the get method () and post method ()?
What is the difference between page directive include and action tag include?
How can you handle errors in Web API?
I’m having some trouble with cas. How can I diagnose my problem?
What tags do you need to add within the asp:datagrid tags to bind columns manually? Give an example.
Can asp.net work on an nt server?
Explain asp.net page life cycle?
In What Order Do The Events Of An Aspx Page Execute. As A Developer Is It Important To Undertsand These Events?
Name some asp objects?
Write a code snippet to implement the indentation in json in web api.
What is the appSettings Section in the web.config file?