<分区>
Possible Duplicate:
How do I add two lists in Linq so addedList[x] = listOne[x] + listTwo[x]?
我有 2 个行数相等的 IList 对象
IList<double> A;
IList<double> B;
我希望返回一个 IList,我在其中执行计算 foreach,为简单起见,假设我只想为列表中的每个项目添加 2 个值 A[n] + B[n]。
您将如何使用 LINQ 执行此操作?