Are all types derived from system.object referenced types

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
 
A

Arne Vajhøj

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
 
A

Arne Vajhøj

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top