I know what is boxing and unboxing , but I can't understend the real use of it. Why and where should I use it?
Expand|Select|Wrap|Line Numbers
- int n = 24;
- object ob = n;//boxing
- int m = (int) ob;//unboxing
Explain with example.Why do we need boxing and unboxing in C#?
|