I have two hashsets like this:
HashSet<string> log1 = new HashSet<string>(File.ReadLines("log1.txt"));
HashSet<string> log2 = searcher(term);
How would I compare the two?
I want to make sure that log2
does not contain any entries from log1
. In other words, I want to remove all(if any), items that log1
has inside log2
.