🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: [piaskownica] - struktura projektu

#21820
From: mjk4444
Date: Fri, 29 Oct 2010 19:59
32 lines
1590 bytes
> 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 
Technical Details
Message-ID: <iaf93p$7mm$1@news.onet.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.nask.pl!news.nask.org.pl!news.onet.pl!not-for-mail
References: <4cca9eea$0$22806$65785112@news.neostrada.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.nask.pl!news.nask.org.pl!news.onet.pl!not-for-mail
From: "mjk4444" <mjk4444_CIACH_@vp.pl>
Newsgroups: alt.pl.comp.lang.csharp
Subject: Re: [piaskownica] - struktura projektu
Date: Fri, 29 Oct 2010 21:59:41 +0200
Organization: http://onet.pl
Lines: 33
Message-ID: <iaf93p$7mm$1@news.onet.pl>
References: <4cca9eea$0$22806$65785112@news.neostrada.pl>
NNTP-Posting-Host: 94.254.156.175
Mime-Version: 1.0
X-Trace: news.onet.pl 1288382394 7894 94.254.156.175 (29 Oct 2010 19:59:54 GMT)
X-Complaints-To: niusy@onet.pl
NNTP-Posting-Date: Fri, 29 Oct 2010 19:59:54 +0000 (UTC)
In-Reply-To: <4cca9eea$0$22806$65785112@news.neostrada.pl>
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6002.18197
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6002.18263
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit