From: Tony Johansson on 18 May 2010 14:53 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 18 May 2010 19:52 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 18 May 2010 21:24 "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 18 May 2010 21:54 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
|
Pages: 1 Prev: Dsl Dial-up connection Next: Return null if query is empty |