Explain boxing and unboxing in .net.



Explain boxing and unboxing in .net...

Answer / Gangesh Chand Gupta

Boxing is the implicit conversion of a value type (like int or bool) to an object (System.Object). Unboxing is the reverse operation, converting an object back to its original value type. This is useful when dealing with generic collections that can contain multiple data types.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Dot Net General Interview Questions

Can we have same method with same name and signature using partial classes

1 Answers  


what is yield keyword in .Net?

2 Answers  


Name for built-in permission sets in .Net

1 Answers  


What is prerender event of a page?

3 Answers   C Squared Systems,


what is AGILE SCRUM methodoly....?

1 Answers  


what is the keyword used for self reference?

1 Answers  


Difference between VB.NET and C#. Which is faster ?

16 Answers   TCS,


Explain security measures exist for .net remoting in system.runtime.remoting?

1 Answers  


Describe the compilation process for .net code?

1 Answers  


What is garbage collection in .net? Explain the garbage collection process?

1 Answers  


What?s SingleCall activation mode used for?

1 Answers  


Do you know what is .net standard?

1 Answers  


Categories