What is boxing? Explain its functionality?



What is boxing? Explain its functionality?..

Answer / Geetanjali

Boxing refers to the process of converting a value type (struct) into an object in C#. This allows value types to be stored in variables, passed as arguments, and returned from methods that are designed for objects. When a value type is boxed, it is wrapped in a System.Object and can behave like any other .NET object. The opposite of boxing is unboxing.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What is a pre-requisite for connection pooling?

1 Answers  


Is string immutable in c#?

1 Answers  


Explain the difference between the debug class and trace class?

1 Answers  


Which types of inheritances does c# support?

1 Answers  


explain Garbage collector’s functionality on unmanaged code

1 Answers   DELL,


Indexers in c#?

8 Answers   Intaglio, Microsoft, TCS,


What is a console in c#?

1 Answers  


Contrast between an interface and abstract class?

1 Answers   Siebel,


Define interface class in c#?

1 Answers  


What is the difference between list and arraylist in c#?

1 Answers  


what is virtual method in c#?

1 Answers  


Please explain value types and reference types used in c#?

1 Answers  


Categories