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
Explain the difference between pass by value and pass by reference.
What is callback delegate in c#?
What is the difference between first and firstordefault?
What is difference between array and collection in c#?
What is the adv of using System.Text.StringBuilder over System.String?
How do you remove white spaces from a string?
Define c# i/o classes?
What is generic delegate in c#?
Which config file has all the supported channels/protocol?
What is the main method in c#?
what are pointer types in c#
If I have more than one version of one assemblies, then how'll I use old version (how/where to specify version number?)in my application?
What is session management in c#?
Define constructors
What are verbatim strings in c#?