From: Tony Johansson on
Hi!

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

I would believe so but that is wrong.

//Tony



From: Arne Vajhøj on
On 18-05-2010 14:53, Tony Johansson wrote:
> 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

From: Tony Johansson on
"Arne Vajh�j" <arne(a)vajhoej.dk> skrev i meddelandet
news:4bf3282a$0$283$14726298(a)news.sunsite.dk...
> On 18-05-2010 14:53, Tony Johansson wrote:
>> 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 ?

//Tony


From: Arne Vajhøj on
On 18-05-2010 21:24, Tony Johansson wrote:
> "Arne Vajh�j"<arne(a)vajhoej.dk> skrev i meddelandet
> news:4bf3282a$0$283$14726298(a)news.sunsite.dk...
>> On 18-05-2010 14:53, Tony Johansson wrote:
>>> 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.
>
> 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