🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: const

#10074
From: Marcin Grzębski
Date: Wed, 16 Nov 2005 16:05
16 lines
1343 bytes
Wiktor Zychla wrote:
>>Gdy usune "const" wszystko działa. Jak to jest z tymi stałymi w C#.
> 
> 
> stałe są "statyczne" w tym sensie, że nie są przywiązane do instancji 
> obiektów tylko do klas.
> 
> Wiktor Zychla 

i co się z tym wiąże, odwołasz się do nich:

//        COsoba o = new COsoba();
         Console.WriteLine(COsoba.test);

pozdrawiam
Marcin
Technical Details
Message-ID: <dlflbp$qna$1@atlantis.news.tpi.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.nask.pl!news.nask.org.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
References: <dlfgpp$7b$1@atlantis.news.tpi.pl> <dlfh11$1ot$1@atlantis.news.tpi.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.nask.pl!news.nask.org.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
From: Marcin Grzębski <mgrzebski@taxussi.no.com.spam.pl>
Newsgroups: alt.pl.comp.lang.csharp
Subject: Re: const
Date: Wed, 16 Nov 2005 17:05:01 +0100
Organization: tp.internet - http://www.tpi.pl/
Lines: 16
Message-ID: <dlflbp$qna$1@atlantis.news.tpi.pl>
References: <dlfgpp$7b$1@atlantis.news.tpi.pl> <dlfh11$1ot$1@atlantis.news.tpi.pl>
NNTP-Posting-Host: 199.wmok.net
Mime-Version: 1.0
X-Trace: atlantis.news.tpi.pl 1132157114 27370 217.96.29.199 (16 Nov 2005 16:05:14 GMT)
X-Complaints-To: usenet@tpi.pl
NNTP-Posting-Date: Wed, 16 Nov 2005 16:05:14 +0000 (UTC)
User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)
X-Accept-Language: en-us, en
In-Reply-To: <dlfh11$1ot$1@atlantis.news.tpi.pl>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit