Reputation: 2358
I have the following scenario. I have two collections, one has some items missing. What collection type would be the quickest to find the missing items and insert them?
Upvotes: 3
Views: 298
Reputation: 6453
You may want to take a look into HashSet which has a method called UnionWith.
Upvotes: 2
Reputation: 1051
HashSet is your friend: http://msdn.microsoft.com/en-us/library/bb359438.aspx
Upvotes: 5