How do I merge (or zip) two IEnumerables together?

前端 未结 10 1616
予麋鹿
予麋鹿 2020-12-17 00:38

I have an IEnumerable and an IEnumerable that I want merged into an IEnumerable> where

10条回答
  •  悲哀的现实
    2020-12-17 00:56

    Look at nextension:

    Currently Implemented Methods

    IEnumerable

    • ForEach Performs a specified action on each element of the IEnumerable.
    • Clump Groups items into same size lots.
    • Scan Creates a list by applying a delegate to pairs of items in the IEnumerable.
    • AtLeast Checks there are at least a certain amount of items in the IEnumerable.
    • AtMost Checks there are no more than a certain amount of items in the IEnumerable.
    • Zip Creates a list by combining two other lists into one.
    • Cycle Creates a list by repeating another list.

提交回复
热议问题