I got the following code:
object var3 = 3; Console.WriteLine(var3.GetType().ToString()); Console.WriteLine(typeof(object).ToString());
The outp
The GetType() function returns the actual type of the instance in the variable.
GetType()
Even though your variable is declared as object, it's actually holding a boxed Int32 instance.
object
Int32