🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: [piaskownica] - struktura projektu

#21821
From: qaz
Date: Tue, 02 Nov 2010 08:02
42 lines
2080 bytes
Użytkownik "mjk4444" <mjk4444_CIACH_@vp.pl> napisał w wiadomości 
news:iaf93p$7mm$1@news.onet.pl...
>> Chciałbym zebrać drobne własne funkcje w jeden worek n.p. "plankton.cs", 
>> jaka powinna być jego forma i jak wywoływać te funkcje ?
>
> public static class Plankton
> {
>  public static string PlanktonRet()
>    {
>      return "PLANKTON";
>    }
>
>  public static string PlanktonRet1()
>    {
>      return "PLANKTON1";
>    }
> }//public static class Plankton
>
>
> {...}
>
>
> void JakasTam()
> {
>  MessageBoc.ShowMessage(Plankton.PlanktonRet() + " " + 
> Plankton.PlanktonRet1() );
> }
>
>
> Z tym raczej trzymanie tam parametrów programu, np z jakiegoś ini 
> wczytanego to nie będzie najlepszym pomysłem ;)
>
> Pozdrawiam
> Mariusz

Dzięki, działa.
Dziwne jest, że w piątek w zasadzie identycznie próbowałem i kupa. Chyba mam 
problemy z dogłębnym rozumieniem zasięgów (public, static)
-- 
pzdr
    qaz 
Technical Details
Message-ID: <4ccfc5b5$0$20993$65785112@news.neostrada.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!feeder.erje.net!xlned.com!feeder5.xlned.com!feeder3.cambriumusenet.nl!feed.tweaknews.nl!209.197.12.242.MISMATCH!nx01.iad01.newshosting.com!newshosting.com!newsfeed.neostrada.pl!unt-exc-01.news.neostrada.pl!unt-spo-a-01.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail
References: <4cca9eea$0$22806$65785112@news.neostrada.pl> <iaf93p$7mm$1@news.onet.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!feeder.erje.net!xlned.com!feeder5.xlned.com!feeder3.cambriumusenet.nl!feed.tweaknews.nl!209.197.12.242.MISMATCH!nx01.iad01.newshosting.com!newshosting.com!newsfeed.neostrada.pl!unt-exc-01.news.neostrada.pl!unt-spo-a-01.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail
From: "qaz" <qazvox29a@wp.pl>
Newsgroups: alt.pl.comp.lang.csharp
References: <4cca9eea$0$22806$65785112@news.neostrada.pl> <iaf93p$7mm$1@news.onet.pl>
Subject: Re: [piaskownica] - struktura projektu
Date: Tue, 2 Nov 2010 09:02:59 +0100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5931
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994
Lines: 43
Message-ID: <4ccfc5b5$0$20993$65785112@news.neostrada.pl>
Organization: Telekomunikacja Polska
NNTP-Posting-Host: 83.11.41.213
X-Trace: 1288684982 unt-rea-a-01.news.neostrada.pl 20993 83.11.41.213:1168
X-Complaints-To: abuse@news.neostrada.pl
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit