© { JSL }
44
Text Box: No Overhead
No Overhead
·in fact, value types do not derive from object
weach value type has a hidden reference type
wthe hidden reference type holds the boxed value
wobject virtual method are not overriden in values
wthey are overriden 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