如果有两个列表:
在VB.NET中,以性能为考量,检测两个集合是否有一个或多个共同项,最好的方法是什么?尽可能地通用。
Dim list1 As New List(Of Integer)
list1.AddRange({1, 2, 3})
Dim list2 As New List(Of Integer)
list2.AddRange({1, 4, 5})
在VB.NET中,以性能为考量,检测两个集合是否有一个或多个共同项,最好的方法是什么?尽可能地通用。