Article View: alt.pl.comp.lang.csharp
Article #22144Re: Jak nazywać obiekty dynamicznie?
From: 3P
Date: Mon, 04 Apr 2011 19:19
Date: Mon, 04 Apr 2011 19:19
17 lines
1384 bytes
1384 bytes
A robi się to tak jak ci napisałem. Albo
List<TwojTyp> lista = PobierzWszystkieObiektyNieWiemIleIchBedzie();
i teraz
for (int i = 0; i < lista.Count(); i++)
{
lista[i].MetodaTwojegoObiektu();
}
lub
foreach (TwojObiekt aktualnyObiekt in lista)
{
aktualnyObiekt.MetodaTwojegoObiektu();
}
Technical Details
Message-ID:
<op.vtfhakmbqh41p4@mcs>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!feeder.erje.net!news.ripco.com!news.glorb.com!news2.glorb.com!news-out.readnews.com!news-xxxfer.readnews.com!nx01.iad01.newshosting.com!newshosting.com!newsfeed.neostrada.pl!unt-exc-01.news.neostrada.pl!news.onet.pl!.POSTED!not-for-mailReferences:
<ina3a1$qk1$1@news.onet.pl> <op.vtdjo0eeqh41p4@mcs> <inaqsn$sns$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!news.ripco.com!news.glorb.com!news2.glorb.com!news-out.readnews.com!news-xxxfer.readnews.com!nx01.iad01.newshosting.com!newshosting.com!newsfeed.neostrada.pl!unt-exc-01.news.neostrada.pl!news.onet.pl!.POSTED!not-for-mail From: 3P <3p@noserver.com> Newsgroups: alt.pl.comp.lang.csharp Subject: Re: Jak nazywać obiekty dynamicznie? Date: Mon, 04 Apr 2011 21:19:22 +0200 Organization: http://onet.pl Lines: 17 Message-ID: <op.vtfhakmbqh41p4@mcs> References: <ina3a1$qk1$1@news.onet.pl> <op.vtdjo0eeqh41p4@mcs> <inaqsn$sns$1@news.onet.pl> NNTP-Posting-Host: 46.151.136.5 Mime-Version: 1.0 X-Trace: news.onet.pl 1301944768 6521 46.151.136.5 (4 Apr 2011 19:19:28 GMT) X-Complaints-To: niusy@onet.pl NNTP-Posting-Date: Mon, 4 Apr 2011 19:19:28 +0000 (UTC) User-Agent: Opera Mail/11.01 (Win32) X-Antivirus: avast! (VPS 110404-0, 2011-04-04), Outbound message X-Antivirus-Status: Clean Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit