Cri*_*scu 6 .net linq list-manipulation
在其他语言(ruby,python,...)我可以使用zip(list1, list2)这样的工作:
zip(list1, list2)
如果list1 is {1,2,3,4}和list2 is {a,b,c}
list1 is {1,2,3,4}
list2 is {a,b,c}
然后zip(list1, list2)会回来:{(1,a), (2,b), (3,c), (d,null)}
{(1,a), (2,b), (3,c), (d,null)}
这种方法在.NET的Linq扩展中是否可用?
And*_*are 13
.NET 4为我们提供了一种Zip方法,但它在.NET 3.5中不可用.如果您感到好奇,Eric Lippert会提供Zip您可能觉得有用的实现.
Zip
归档时间:
16 年 前
查看次数:
1171 次
最近记录:
12 年,4 月 前