How to use Zip on three IEnumerables [duplicate]
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: Create Items from 3 collections using Linq I have performed a zippage of two sequences as follows. IEnumerable<Wazoo> zipped = arr1.Zip(arr2, (outer, inner) => new Wazoo{P1 = outer, P2 = inner}); Now, I just realized that I'll be using three sequences, not two. So I tried to redesign the code to something like this: IEnumerable<Wazoo> zipped = arr1.Zip(arr2, arr3, (e1, e2, e3) => new Wazoo{P1 = e1, P2 = e2, P3 =