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 / madhu maaydi
some times super class ref is may not available to subclass objects at that time we may go for umboxing, data in the web application travers in the net throuw objects only but not through variables at that time we need to type cast it into equalent obecjt at this time we go for boxing and auto boximg....
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is difference between out and ref in c#?
How can you force derived classes to provide new method implementations for virtual methods?
How long does a loop recorder procedure take?
Is a dll an assembly?
What is asenumerable in c#?
What is a delegate? How can it works?
What is parse method in c#?
What is deferred execution in c#?
Why do we need indexers in c#?
Is c# good for web development?
What is different between Implicit conversion and Explicit conversion in C#?
How can i Spawn a Thread
What's the difference between System.String and System..StringBuilder in C#?
How do you prevent a class from being inherited?
What is the difference between field and variable in c#?