开发者

How do I use Union in linq (vb.net)?

开发者 https://www.devze.com 2022-12-17 22:14 出处:网络
I know how to call the Union extension method, e.g. Dim r = productFirstChars.Union(customerFirstChars)

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 ????


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消