LINQ Guarantees Ordering with SelectMany?

前端 未结 2 1243
故里飘歌
故里飘歌 2020-12-17 20:48

I have an array of ordered enumerables IorderedEnumerable[] foo and I want to flatten it so that the ordered enumerables of foo are concat

2条回答
  •  天涯浪人
    2020-12-17 21:18

    All LINQ to Objects methods (except, obviously, OrderBy() and ToDictionary()) will preserve source ordering.

提交回复
热议问题