© { JSL }
44
No Overhead
·
in fact, value types do
not
derive from
object
w
each value type has a hidden reference type
w
the hidden reference type holds the boxed value
w
object
virtual
method are not
override
n in values
w
they are
override
n in the hidden reference type
Pair
«
struct
»
Object
«
class
»
Pair
Reference
«
class
»
Int32
Reference
«
class
»
Int32
«
struct
»
42.ToString() is
not
a
virtual
call
1
1