Possible Duplicate:
How do I add two lists in Linq so addedList[x] = listOne[x] + listTwo[x]?
I have 2 IList objects with equal number of rows
IList<double> A;
IList<double> B;
I am looking to return an IList where i perform a calculation foreach, for simplicity lets assume i just want to add the 2 values A[n] + B[n] for each item in the lists.
How would you do this using LINQ?
Use the
Zipextension method: