7
Reply

What is difference between boxing and unboxing?

Mahesh Chand

Mahesh Chand

18y
12.9k
1
Reply

    Refer to below link http://dotnettec.com/difference-between-boxing-and-unboxing-in-c-sharp/

    Refer to this ..

    boxing = value type to reference type this is called boxing.unboxing = reference type to value type this is called unboxing.

    Please refer to the following link to know the differences between Boxing and Unboxing,http://onlydifferencefaqs.blogspot.in/2012/08/difference-between-boxing-and-unboxing.html

    Implicit conversion of value type to reference type of a variable is known as BOXING, for example integer to object type conversion. Conversion of reference type variable back to value type is called as UnBoxing.

    Boxing is the conversion of value type to an object type.Unboxing is the conversion of object type to value type

    Boxing: is converting value type to reference type

    unboxing: is converting reference type to value type