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


Please Help Members By Posting Answers For Below Questions

What is use of abstract class in c#?

492


What is call back method?

516


Is predicate a functional interface?

482


Is string nullable c#?

498


Can a class have multiple constructors c#?

498






Explane each and every methods of nterface Queue? Explain About performance issues on retrieving records

582


What is xml comments in c#?

489


What are the Types of compatabilities and explain them

518


What is .cshtml file?

495


You are designing a user control. You created new property called backgroundimage which is of type image. You wanted to disable storing this property in the user’s form. How to achieve this?

524


How do you create partial methods?

551


how to create crystal reports give one detail example(i want to view age category report) please give suitable example in my small knowledge

1624


Explain the use of virtual, sealed, override, and abstract method?

476


Define using statement in c#?

518


What is string interpolation in c#?

540