I have a very long list of Ids (integers) that represents all the items that are currently in my database:
var idList = GetAllIds();
I also hav
You should use two HashSets. Note that they're unique and unordered.
HashSet