Article View: borland.public.csharpbuilder.language.csharp
Article #32Re: Boxing and unboxing
From: Andre
Date: Sat, 06 May 2006 18:35
Date: Sat, 06 May 2006 18:35
35 lines
2427 bytes
2427 bytes
This clears up al of my concerns in my code. Of the four books i have on .NET, your explanation was the best regarding the refrence issue. Thanks. "Joanna Carter [TeamB]" <joanna@not.for.spam> wrote in message news:445ce16a$1@newsgroups.borland.com... > "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:
<445cec83@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<445bb0fa@newsgroups.borland.com> <445bcf41@newsgroups.borland.com> <16i3bfc9nqjks.dlg@dlg.marcrohloff.com> <445cd440@newsgroups.borland.com> <445ce011$1@newsgroups.borland.com> <445ce16a$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: "Andre" <andretruter@webmail.co.za> 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> <445ce16a$1@newsgroups.borland.com> Subject: Re: Boxing and unboxing Date: Sat, 6 May 2006 20:35:51 +0200 Lines: 37 Organization: Bluewater Systems 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 X-RFC2646: Format=Flowed; Original X-Antivirus: avast! (VPS 0618-3, 05/05/2006), Outbound message X-Antivirus-Status: Clean NNTP-Posting-Host: 196.207.45.253 Message-ID: <445cec83@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1146940547 196.207.45.253 (6 May 2006 11:35:47 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail