I have two sortedlists
1. oldlist<int,int>
2. newlist <int,int>
(application specific information – key is industryId and value is weight)
I want to compare the changes in the lists.
I want the following things –
-
list of items where weight was not zero, but its zero in the newlist.
-
list of items where weight is not zero and has changed from oldlist.
I know there is something called as comparer.
can it be used here ?
You can use Linq: