Is there a better way to get the difference of 2 lists in VB.net? -
for 2 lists of string s
, t
, i'd members of s not in t. within each list, there no duplicates.
in python, i'd use s.difference(t)
is there concise .net method? i'd avoid using loop.
you can use enumerable.except
.
dim difference = s.except(t)
Comments
Post a Comment