πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.csharpbuilder.language.csharp
Article #30

Re: Boxing and unboxing

#30
From: Joanna Carter [TeamB]
Date: Sat, 06 May 2006 17:48
23 lines
2038 bytes
"Joanna Carter [TeamB]" <joanna@not.for.spam> a οΏ½crit dans le message de 
news: 445ce011$1@newsgroups.borland.com...

| "By value" means that, whatever you do to that reference inside the 
method,
| it won't affect the reference passed in. "By reference" means that you can
| change the reference inside the method and it will affect the reference
| passed that was passed in.

Let me just clarify further that when I talk about affecting the reference 
being passed in, I am talking about changing the memory address of it, not 
the contents of the object contained in the reference.

Both "by value" and "by reference" will allow you to change the contents of 
the object being passed in and you will still be working with the same 
object. "By ref" allows you to change the object that the reference passed 
in is holding, something you don't want to do.

Joanna

-- 
Joanna Carter [TeamB]
Consultant Software Engineer 
Technical Details
Message-ID: <445ce16a$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!multikabel.net!feed20.multikabel.net!news2.euro.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <445bb0fa@newsgroups.borland.com> <445bcf41@newsgroups.borland.com> <16i3bfc9nqjks.dlg@dlg.marcrohloff.com> <445cd440@newsgroups.borland.com> <445ce011$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,17b83a1499eb2170
X-Google-Attributes: gid1efe35,public
X-Google-Language: ENGLISH,ASCII
From: "Joanna Carter [TeamB]" <joanna@not.for.spam>
Newsgroups: borland.public.csharpbuilder.language.csharp
References: <445bb0fa@newsgroups.borland.com> <445bcf41@newsgroups.borland.com> <16i3bfc9nqjks.dlg@dlg.marcrohloff.com> <445cd440@newsgroups.borland.com> <445ce011$1@newsgroups.borland.com>
Subject: Re: Boxing and unboxing
Date: Sat, 6 May 2006 18:48:18 +0100
Lines: 25
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
NNTP-Posting-Host: 82.69.239.102
Message-ID: <445ce16a$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1146937706 82.69.239.102 (6 May 2006 10:48:26 -0700)
X-Authenticated-User: jcarter
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!multikabel.net!feed20.multikabel.net!news2.euro.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail