I know there are many many questions covering this topic and I have read them all. But I'm still left wondering this:
If an object
is a reference type and all value types are derived from object
, then is it accurate to say that a value type such as int
is also a reference type? Specifically, if I wrote:
int i = 10;
Is i
holding the value of 10, or is it an object holding a reference to the value of 10?
Or is it more accurate to say that a value type can be a reference type through the process of boxing.