I have two lists of objects, and I have been learning how to remove items from one list if they appear in another.
I have come up with this:
result.ResultantPoliciesTable.RemoveAll(item => result.PoliciesTable.Select
(f => f.PolicyName).Contains(item.PolicyName));
This works, but if an integer property of the object in ResultantPoliciesTable
called ManagementID
equals a value I will supply then I do not want this object to be removed.
Can anyone help me extend this query to achieve this?