如何相交一个数组? [英] How to Intersect two Arrays?
本文介绍了如何相交一个数组?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我和VB.Net工作,并有两个一维数组。有没有发现,两者共同他们的元素一个内置的功能?还是我必须写一个我自己?
解决方案
恐怕你得写一个自己,因为在.NET 2.0中没有内置的功能。
在的想法这个计算器问题你如何实现它自己。看p>
I'm working with VB.Net, and have two one-dimensional Arrays. Is there an Inbuilt function for finding the elements that are common to both of them? Or do I have to write one for myself?
解决方案
I'm afraid you'll have to write one for yourself, because there is no built-in function in .NET 2.0.
Look at this StackOverflow question for ideas about how you could implement it yourself.
这篇关于如何相交一个数组?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文