Thursday, August 23, 2012

What is concept of boxing and unboxing

Boxing and unboxing act like bridges beween value type and reference types. When we convert value type to a reference type its termed as boxing. Unboxing is vice versa. When an  object box is cast back to its original value type.

Below is sample code of boxing and unboxing

int i=1;
object obj=I;     // boxing
int j=(int) obj;    // unboxing


If you are searching life partner. your searching end with kpmarriage.com. now kpmarriage.com offer free matrimonial website which offer free message, free chat, free view contact information. so register here : kpmarriage.com- Free matrimonial website