开发者

LINQ: Convert to IEnumerable from WhereSelectEnumerableIterator

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜