boxing means converting value type to reference type and
unboxing means converting reference type to value type.why
we need boxing and unboxing?
Answer Posted / deepak
actually we need boxing and unboxing to keep more than one type of value type of variables in a common reference type of collection.. so that you can do the common operation in a loop or anywhere else.. by unboxing one by one.. also you can pass that collection to any method.. so you dont need to make many overloaded method for every type of value type..
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Explain what a diffgram, and a good use for one Define diffgram? How it be used?
What operator means?
What is func c#?
How do I create a new form in c#?
Can you have parameters for static constructors?
What are the types of access modifiers?
What is the difference between asp net and c#?
What are verbatim strings in c#?
What is default constructor c#?
What is xslt in c#?
Is comparable a functional interface?
Define satellite Assembly?
What is object array in c#?
Is it not possible to store a boolean value as a variable?
Define a jagged array in c#?