concept of boxing and unboxingthe boxing permits


Concept of Boxing and Unboxing

The Boxing permits any value type to be implicitly converted to type object or to any other interface type implemented by the value type. The Boxing is a process in which object instances are created and copy values into that instance.

Unboxing is just reverse of boxing operation in which the value is copied from the instance into the appropriate storage location.

Below is the sample code of boxing and  unboxing where integer data type is converted into the object and then vice versa.

Dim x As Integer

Dim y As Object

x = 10

 ' boxing process

y = x

 unboxing process

x = y

Request for Solution File

Ask an Expert for Answer!!
DOT NET Programming: concept of boxing and unboxingthe boxing permits
Reference No:- TGS0161182

Expected delivery within 24 Hours