boxing and unboxing in c# with real time example
Example: boxing and unboxing in c#
class BoxingUnboxing
{
static void Main()
{
int myVal = 1;
object obj = myVal; // Boxing
int newVal = (int)obj; // Unboxing
}
}