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 |
Can you Write the GC(Garbage Collector) Algoritham in .NET? (But not Explination of Working of GC).
What is GC (Garbage Collection) and how it works
What is the difference between tempdata and viewbag?
Diffence between .net framework 1.0 and 2.0?
Does .NET Framework support SAX?
Difference between Dispose and Finalize method
What is global assembly cache
How we can invoke child actions in ASP.Net MVC?
What is Jit compilers?.how many are available in clr
What are the major improvements provided by the common language runtime and the base class libraries? Or what are the major improvements in .net framework 4.0?
What is objectset? : Entity framework
What is the use of the default route {resource}.axd/{*pathinfo} ?