Why do we need boxing and unboxing in C#?explain with example?
I know what is boxing and unboxing , but I can't understend the real use of it. Why and where should I use it?
I know what is boxing and unboxing , but I can't understend the real use of it. Why and where should I use it?
Code:
int n = 24; object ob = n;//boxing int m = (int) ob;//unboxing