🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: pl.comp.lang.vbasic
2 messages
2 total messages Started by Maciej Tokarz Wed, 04 Nov 2009 12:41
LINQ, nazwy pól
#104370
Author: Maciej Tokarz
Date: Wed, 04 Nov 2009 12:41
7 lines
894 bytes
Witam,

W jaki sposób mogę pobrać nazwy pól zastosowanych w zapytaniu?

-- 
   Maciej Tokarz
   My-Poi.pl
Re: LINQ, nazwy pól
#104371
Author: Maciej Tokarz
Date: Sat, 07 Nov 2009 23:09
15 lines
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads