🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.pl.comp.lang.csharp
Article #21276

Pytanie dot. akcesorów

#21276
From: marcin
Date: Sat, 12 Dec 2009 21:29
34 lines
1494 bytes
Witam,

Krótkie pytanie. Mam kod:

--
    class Test
    {
        public Rectangle Bounds { get; set; }


        public Test()
        {
        }
    }


          Test test = new Test();
          test.Bounds.Offset(2, 2);
--

Wywołanie metody Offset() nie zapisuje stanu. Czy wynika to z faktu, ze 
akcesor zwraca tak naprawdę kopię pola Bounds?


-- 
Pozdrawiam
Marcin 


__________ Informacja programu ESET Smart Security, wersja bazy sygnatur wirusow 4682 (20091212) __________

Wiadomosc zostala sprawdzona przez program ESET Smart Security.

http://www.eset.pl lub http://www.eset.com 
Technical Details
Message-ID: <hg1203$olk$1@inews.gazeta.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
From: "marcin" <marcin.zamorski@gmail.com>
Newsgroups: alt.pl.comp.lang.csharp
Subject: Pytanie dot. akcesorów
Date: Sat, 12 Dec 2009 22:29:28 +0100
Organization: "Portal Gazeta.pl -> http://www.gazeta.pl"
Lines: 37
Message-ID: <hg1203$olk$1@inews.gazeta.pl>
NNTP-Posting-Host: 90-156-50-161.as.kn.pl
Mime-Version: 1.0
X-Trace: inews.gazeta.pl 1260653380 25268 90.156.50.161 (12 Dec 2009 21:29:40 GMT)
X-Complaints-To: usenet@agora.pl
NNTP-Posting-Date: Sat, 12 Dec 2009 21:29:40 +0000 (UTC)
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6002.18005
X-Priority: 3
X-Newsreader: Microsoft Windows Mail 6.0.6002.18005
X-User: marcin.zamorski
X-EsetScannerBuild: 6203
X-MSMail-Priority: Normal
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit