Define boxing and unboxing in c#?



Define boxing and unboxing in c#?..

Answer / Sulakshya Singh

Boxing in C# is the automatic conversion of a value type (such as int or bool) to an object, allowing it to be stored in an object variable or passed as an object parameter.nUnboxing is the reverse process, converting an object back into its original value type.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

How can we main a Class as base class,i.e not inherited further?{please Dont tell using Sealed class,any other way}

6 Answers   ACB Group, IBM, Tech Mahindra,


What is xamarin used for?

1 Answers  


how to Create a datagridview control with check box column with 8rows in it, the maximum number of check boxes checked should be 3, when user checks the 4th corresponding message should be displayed and check box should be checked. User can uncheck the checked boxes Note: read-only property should not be used

1 Answers   HCL, NIC,


Explain how do I convert a string to an int in c#?

1 Answers  


What is protected internal modifier in C#?

1 Answers   Arigo Infotech,


Is lazy thread safe c#?

1 Answers  


What are virtual methods? How are they used?

3 Answers   TCS,


What are the 3 types of comments in c#?

1 Answers  


What is data adapter in c#?

1 Answers  


When Should You Call The Garbage Collector In .net?

1 Answers   Siebel Systems,


Define an array?

1 Answers  


Can partial class be inherited?

1 Answers  


Categories