Article View: pl.comp.lang.vbasic
Article #104669Re: ListView i LINQ
From: Wiktor Zychla
Date: Wed, 23 Jun 2010 12:56
Date: Wed, 23 Jun 2010 12:56
24 lines
1826 bytes
1826 bytes
> W poniższym kodzie podkreśla Text :(. Jest możliwy taki zapis?
nieznajomość składni VB.NET się kłania:
>
> Dim listItems = From fileInfo In alarmFolder.GetFiles("*.wav") _
> Let s_name = fileInfo.Name _
> Order By fileInfo.Name _
select new ListViewItem() with { .Text = ...., .Tag = .... }
http://blogs.msdn.com/b/wriju/archive/2008/02/05/vb-net-9-0-object-and-array-initializers.aspx
pozdrawiam
Wiktor Zychla
> Select New ListViewItem() _
> {Text = s_name.Substring(0, s_name.Length - 4), _
> Tag = fileInfo.FullName}
>
>
> --
> Maciej Tokarz
> My-Poi.pl
Technical Details
Message-ID:
<4c220498$0$19183$65785112@news.neostrada.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!feeder.erje.net!news2.arglkargh.de!news.osn.de!diablo1.news.osn.de!ecngs!feeder.ecngs.de!feeder.news-service.com!feeder2.cambriumusenet.nl!feeder3.cambriumusenet.nl!feed.tweaknews.nl!209.197.12.246.MISMATCH!nx02.iad01.newshosting.com!newshosting.com!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!unt-spo-b-01.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mailReferences:
<hvsmd3$spj$1@news.onet.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!feeder.erje.net!news2.arglkargh.de!news.osn.de!diablo1.news.osn.de!ecngs!feeder.ecngs.de!feeder.news-service.com!feeder2.cambriumusenet.nl!feeder3.cambriumusenet.nl!feed.tweaknews.nl!209.197.12.246.MISMATCH!nx02.iad01.newshosting.com!newshosting.com!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!unt-spo-b-01.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail From: "Wiktor Zychla" <wzychla@nospam.com> Newsgroups: pl.comp.lang.vbasic References: <hvsmd3$spj$1@news.onet.pl> In-Reply-To: <hvsmd3$spj$1@news.onet.pl> Subject: Re: ListView i LINQ Date: Wed, 23 Jun 2010 14:56:05 +0200 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Newsreader: Microsoft Windows Live Mail 14.0.8117.416 X-MimeOLE: Produced By Microsoft MimeOLE V14.0.8117.416 Lines: 25 Message-ID: <4c220498$0$19183$65785112@news.neostrada.pl> Organization: Telekomunikacja Polska NNTP-Posting-Host: 195.116.95.201 X-Trace: 1277297816 unt-rea-a-01.news.neostrada.pl 19183 195.116.95.201:6727 X-Complaints-To: abuse@news.neostrada.pl Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit