=> 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
int i = (int)Obj; //Unboxing
0 comments:
Post a Comment