我有两个List,我想检查相应的数字.
例如
List<int> a = new List<int>(){1, 2, 3, 4, 5}; List<int> b = new List<int>() {0, 4, 8, 12};
应该给出结果4.有没有一个简单的方法来做到这一点,而没有太多循环列表?
我在3.0的项目中需要这个,所以没有Linq.
.net c# generics list
.net ×1
c# ×1
generics ×1
list ×1