1.

What Happens During The Process Of Boxing?

Answer»

Boxing is used to store value types in the garbage-collected heap. Boxing is an implicit conversion of a value TYPE to the type object or to any interface type IMPLEMENTED by this value type. Boxing a value type allocates an object INSTANCE on the heap and copies the value into the new object. Due to this boxing and UNBOXING can have performance impact.

Boxing is used to store value types in the garbage-collected heap. Boxing is an implicit conversion of a value type to the type object or to any interface type implemented by this value type. Boxing a value type allocates an object instance on the heap and copies the value into the new object. Due to this boxing and unboxing can have performance impact.



Discussion

No Comment Found