Article View: pl.comp.lang.vbasic
Article #104371Re: LINQ, nazwy pól
From: Maciej Tokarz
Date: Sat, 07 Nov 2009 23:09
Date: Sat, 07 Nov 2009 23:09
15 lines
1245 bytes
1245 bytes
Jakby ktoś kiedyś...
Dim qryList = emps.ToList()
Dim firstElement = qryList(0)
Dim elementType As Type = firstElement.[GetType]()
Dim columns As PropertyInfo() = elementType.GetProperties()
For Each col As PropertyInfo In columns
Console.WriteLine(col.Name)
Next
--
Maciej Tokarz
My-Poi.pl
Technical Details
Message-ID:
<hd4unm$2dm$2@news.onet.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.onet.pl!not-for-mailReferences:
<hcrsq3$krl$1@news.onet.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.onet.pl!not-for-mail From: Maciej Tokarz <mactok@hotmail.com> Newsgroups: pl.comp.lang.vbasic Subject: Re: LINQ, nazwy pól Date: Sun, 08 Nov 2009 00:09:22 +0100 Organization: http://onet.pl Lines: 15 Message-ID: <hd4unm$2dm$2@news.onet.pl> References: <hcrsq3$krl$1@news.onet.pl> NNTP-Posting-Host: xdsl-1224.wroclaw.dialog.net.pl Mime-Version: 1.0 X-Trace: news.onet.pl 1257635382 2486 81.168.132.200 (7 Nov 2009 23:09:42 GMT) X-Complaints-To: niusy@onet.pl NNTP-Posting-Date: Sat, 7 Nov 2009 23:09:42 +0000 (UTC) User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) In-Reply-To: <hcrsq3$krl$1@news.onet.pl> X-Antivirus: avast! (VPS 091107-0, 2009-11-07), Outbound message X-Antivirus-Status: Clean Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit