I got the following code:
object var3 = 3; Console.WriteLine(var3.GetType().ToString()); Console.WriteLine(typeof(object).ToString());
The outp
This isn't really about boxing; this is about the behaviour of GetType. It returns the type of the value of the variable, not the type the variable was declared with:
GetType
object var4 = new List(); Console.WriteLine(var4.GetType().ToString());
won't return System.Object either.
System.Object