Are all types derived from system.object referenced types

  • Thread starter Thread starter Tony Johansson
  • Start date Start date
T

Tony Johansson

Hi!

Can somebody explain why not all types derived from System.object are
reference types ?

I would believe so but that is wrong.

//Tony
 
Can somebody explain why not all types derived from System.object are
reference types ?

I would believe so but that is wrong.

Yes.

Everything is derived from Object.

Arne
 
Are value types also derived from Object ?

Yes.

System.Int32 extends System.ValueType that extends System.Object.

But they are not treated identical to non-value types. So they
are different.

Arne
 
Back
Top