ViewState with example in asp.net C#

Tuesday, December 21, 2010

Difference between boxing and unboxing

Difference between boxing and unboxing in asp.net C#
              Boxing allows us to convert value type to reference type. Basically , the run time create a temporary reference-type box for the object on heap.
Example:-
                int i = 20;
                object ob=i;     //Boxing.

No comments:

Post a Comment