> From: "Richard Blewett" <[EMAIL PROTECTED]>
>
> struct Point
> {
> public int X;
> public int Y;
> }
>
> I can then write:
>
> Point p;
> p.X = 10;
> p.Y = 20;
>
> The declaration "gets me a new instance of this type". All new does for a
> value type is give me a hook on which to hang my "run
b/weblog
-Original Message-
From: Unmoderated discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf Of Eric Gunnerson
Sent: 12 July 2004 18:59
To: [EMAIL PROTECTED]
Subject: Re: [ADVANCED-DOTNET] Value and Reference Types confusion.
Inline...
Eric
-Original Message---
> - Original Message -
> From: "Ankit Bhurat" <[EMAIL PROTECTED]>
> a) One book said that all the objects of type Struct are of value
type
> and all Class Objects are of reference types .
> The same book said : If cTest is a class then
>
> cTest x = new cTest();
> cTest y ;
>
> both x
Inline...
Eric
-Original Message-
From: Unmoderated discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf Of Ankit Bhurat
Sent: Monday, July 12, 2004 10:35 AM
To: [EMAIL PROTECTED]
Subject: [ADVANCED-DOTNET] Value and Reference Types confusion.
Hi all,
These days I am
Hi all,
These days I am reading about .NET Framework. I came across Value and
Reference Types and developed some confusion. Pls clarify :
a) One book said that all the objects of type Struct are of value type
and all Class Objects are of reference types .
The same book said : If cTest is