I have 3 generic lists:
List<string> input
List<string> compareTo
List<string> results
I'd like to take the list of input and compare each value to the compare list, and if it doesn't exist add it to the results list.
Any reason you can't just use LINQ?
List<string> results = input.Except(compareTo).ToList();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With