What is boxing and unboxing.


=> Boxing and unboxing one can be linked between value type to reference type. Converting value type to reference type is boxing and a vice-versa is unboxing.


int Val = 1; 

Object Obj = Val; //Boxing

int i = (int)Obj; //Unboxing

Share

& Comment

0 comments:

Post a Comment

 

Copyright © 2019 HART™ is a registered trademark.