Do I have to write my own Function ?
Is there a built in Function 开发者_高级运维in List to checks another list for membership ?
Dim ListA As New List(Of Int32)(New Int32() {1, 3, 5})
Dim ListB As New List(Of Int32)(New Int32() {1, 2, 4, 6, 5, 3, 7})
Dim isSubList = Not ListA.Except(ListB).Any() 'True'
MSDN: Enumerable.Except
精彩评论