Sobes.tech
Intern — Senior

Boxing and working with types in C#

livecode

Task condition

What will be displayed in the console:

static void Example1()
{
    int number = 5;
    object boxed = number;
    number = 12;
    
    Console.WriteLine(boxed);
    Console.WriteLine(number);
}