tags:

views:

45

answers:

1

I know how to call the Union extension method, e.g.

Dim r = productFirstChars.Union(customerFirstChars)

However I do I do this with the Linq syntax, e.g.

from productFirstChars select ????
+2  A: 

You can't - not all LINQ operators are supported in query expressions, and Union is one of those that isn't. (VB has language support for more query operators than C#, as it happens.) See the documentation for a list of supported query clauses.

Jon Skeet
Thanks trying to Google for a negative answer never work well
Ian Ringrose
Funny you say VB has better query expressions then C#, I am only using a query expression in the first place as VB has such bad support for lambda expressions.
Ian Ringrose