Connecting Tech Pros Worldwide Forums | Help | Site Map

Question On Reference Types

thomson
Guest
 
Posts: n/a
#1: Nov 16 '05
Hi All,
Probably it may be a dump question, But as iam in a learning
Phase, you have the right to ask these questions

Why we need Reference Types?
What is the advantage of that when compared to value types.

For eg: Class can be implemented using structures which is a value
type.

Thanks in Advance

Thomson


cody
Guest
 
Posts: n/a
#2: Nov 16 '05

re: Question On Reference Types


If we only had struct/value types everytime you pass such an object to a
method or assign it to a variable the whole object would be copied.

"thomson" <saintthomson@yahoo.com> schrieb im Newsbeitrag
news:1107260210.284546.95840@f14g2000cwb.googlegro ups.com...[color=blue]
> Hi All,
> Probably it may be a dump question, But as iam in a learning
> Phase, you have the right to ask these questions
>
> Why we need Reference Types?
> What is the advantage of that when compared to value types.
>
> For eg: Class can be implemented using structures which is a value
> type.
>
> Thanks in Advance
>
> Thomson
>[/color]


Ansil MCAD
Guest
 
Posts: n/a
#3: Nov 16 '05

re: Question On Reference Types


hi
Read this article from Skeet

http://www.yoda.arachsys.com/csharp/memory.html

you will get your questions answered there

regards
Ansil
Trivandrum

"thomson" wrote:
[color=blue]
> Hi All,
> Probably it may be a dump question, But as iam in a learning
> Phase, you have the right to ask these questions
>
> Why we need Reference Types?
> What is the advantage of that when compared to value types.
>
> For eg: Class can be implemented using structures which is a value
> type.
>
> Thanks in Advance
>
> Thomson
>
>[/color]
thomson
Guest
 
Posts: n/a
#4: Nov 16 '05

re: Question On Reference Types


Hi all,
thanks for the informative reply

Regards

thomson
Ansil MCAD wrote:[color=blue]
> hi
> Read this article from Skeet
>
> http://www.yoda.arachsys.com/csharp/memory.html
>
> you will get your questions answered there
>
> regards
> Ansil
> Trivandrum
>
> "thomson" wrote:
>[color=green]
> > Hi All,
> > Probably it may be a dump question, But as iam in a learning
> > Phase, you have the right to ask these questions
> >
> > Why we need Reference Types?
> > What is the advantage of that when compared to value types.
> >
> > For eg: Class can be implemented using structures which is a value
> > type.
> >
> > Thanks in Advance
> >
> > Thomson
> >
> >[/color][/color]

thomson
Guest
 
Posts: n/a
#5: Nov 16 '05

re: Question On Reference Types


Hi all,
thanks for the informative reply

Regards

thomson
Ansil MCAD wrote:[color=blue]
> hi
> Read this article from Skeet
>
> http://www.yoda.arachsys.com/csharp/memory.html
>
> you will get your questions answered there
>
> regards
> Ansil
> Trivandrum
>
> "thomson" wrote:
>[color=green]
> > Hi All,
> > Probably it may be a dump question, But as iam in a learning
> > Phase, you have the right to ask these questions
> >
> > Why we need Reference Types?
> > What is the advantage of that when compared to value types.
> >
> > For eg: Class can be implemented using structures which is a value
> > type.
> >
> > Thanks in Advance
> >
> > Thomson
> >
> >[/color][/color]

Closed Thread