I am a little bit confused, if I create an instance of a class Test it means that into the stack creates the reference into a heap where store field a.
class Test
{
public int a;
}
Test test = new Test();
test.a = 10;
Here I create o, so it means that into the stack creates the reference into a heap where store value 10. As far as I understand in both situations we have the same binary representation of variables into a heap.
object o = 10;
Why in the second case I get boxing but in the first one no boxing?