Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- listB.RemoveAll(listA.Contains);
- foreach (string str in listA.Intersect(listB))
- listB.Remove(str);
- foreach(TypeA objectA in listA){
- listB.RemoveAll(objectB => objectB.Id == objectA.Id);
- }
- for (item i: LISTA) {
- removeItem(i, LISTB);
- }
- method removeItem(Item, List) {
- for (Item i: List) {
- if (Item == i)
- List.removeItem(i);
- }
- }
- foreach Object o in ListA
- If ListB.contains(o)
- ListB.remove(o)
Add Comment
Please, Sign In to add comment