Understanding Boxing and Un-Boxing

Posted by Rajesh_Kumar under C# category on | Points: 40 | Views : 818
As we know that,Boxing is used for converting value type to reference type and vice-versa.

For Example:-

int i = 5;//declare an integer variable

object j = i; //Boxing object

int k = (int)j; //Un-Boxing object

Comments or Responses

Login to post response