What is boxing and unboxing?
Answers were Sorted based on User's Feedback
Answer / sri4u_926
Boxing: Converting of Stack based values into the Heap
Based values i.e coverting of a value type to a reference
type is the Boxing.
UnBoxing is vice versa.
Is This Answer Correct ? | 41 Yes | 1 No |
Answer / maloy.adhikari
Converting a value type to reference type is called Boxing
and Converting reference type of value type is Unboxing.
int i = 1;
object o = i; // boxing
int j = (int)o; // unboxing
Is This Answer Correct ? | 6 Yes | 0 No |
Answer / gowtham
Boxing: To convert value type to reference type.
UnBoxing: To convert reference type to value type.
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / zeenat
Boxing:- Creating a Instance of a object and passing the
value of a variable to that object
dim x as integer
dim y as object
y = x - Boxing process
x = y - unboxing
Unboxing :- passing a value of a object to the varible
Is This Answer Correct ? | 13 Yes | 17 No |
What are Satellite Assemblies? How you will create this?
What is the benefit of entity framework?
What is clr? How does work clr & wht is work of clr?
What are the components of the .net framework.
How OS come to know whether to load the .net framework when we run an .exe created using .Net framework?
How can you return string result from Action in ASP.Net MVC?
What is .net framwork? what is web application? what is CLR? How does work CLR & wht is work of CLR? What is compile? wht is thread? what does use in .net?
What is difference between razor and web form engine?
What is side by side Execution ?
What is entity sql? : Entity framework
What are advantages of Dependency Injection (DI) in ASP.Net MVC?
What is MVVM design pattern?