What is boxing and unboxing in c#?



What is boxing and unboxing in c#?..

Answer / Gulshan Kumar

Boxing refers to the implicit conversion of a value type (such as int) to an object (Object or any other class), while unboxing is the explicit conversion from an object back to its original value type. This allows value types to be used with collection classes that only accept objects.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What is encapsulation in csharp?

1 Answers  


Indexers in c#?

8 Answers   Intaglio, Microsoft, TCS,


Why c# is called type safe language?

1 Answers  


What are functions in c#?

1 Answers  


What does virtual keyword mean ?

6 Answers   TCS,


What is the xml document structure?

1 Answers  


Do void methods have parameters?

1 Answers  


What is “using” statement in c#?

1 Answers  


What is the components of window?

1 Answers  


What is the difference between field and variable in c#?

1 Answers  


What is the meaning of console writeline in c#?

1 Answers  


What are c# i/o classes?

1 Answers  


Categories