Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Declaration of link objects
Message
De
07/11/2011 14:03:49
 
 
À
07/11/2011 13:28:13
Information générale
Forum:
ASP.NET
Catégorie:
LINQ
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01528239
Message ID:
01528297
Vues:
37
>If the query returns an anonymous type then you can't. If the query yields a known type then something like this will work:
Dim list As New List(Of String)() From { _
>	"One", _
>	"Two", _
>	"Three" _
>}
>Dim s As IEnumerable(Of String)
>s = From x In list select x
(Disclaimer: used a C# -> VB converter and assuming the translation is correct)

Thanks
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform