开发者

LINQ: Convert to IEnumerable from WhereSelectEnumerableIterator

开发者 https://www.devze.com 2023-01-30 14:18 出处:网络
How do you convert a WhereSelectEnumerableIterator<foo, E开发者_JAVA技巧ntitySet<blah>> to a IEnumerable<blah>Answer: I\'ve used SelectMany

How do you convert a WhereSelectEnumerableIterator<foo, E开发者_JAVA技巧ntitySet<blah>> to a IEnumerable<blah>


Answer: I've used SelectMany

from MSDN:

Projects each element of a sequence to an IEnumerable and flattens the resulting sequences into one sequence.

0

精彩评论

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