T
Tom H.
Newbie question, hopefully not one that will embarrass me.
I'm reading Richter's Applied MS .NET Framework Programming and keep
seeing snippets such as this:
Int32 v = 5;
Object o = v;
Console.Writeline("{0}, {1}, {2}", o, o, o);
in which it appears that code referencing an Object magically knows
the type of data it contains. Is the type stored in the object
itself, or is it determined by some set of rules?
I'm reading Richter's Applied MS .NET Framework Programming and keep
seeing snippets such as this:
Int32 v = 5;
Object o = v;
Console.Writeline("{0}, {1}, {2}", o, o, o);
in which it appears that code referencing an Object magically knows
the type of data it contains. Is the type stored in the object
itself, or is it determined by some set of rules?