I have 2 separate List and I need to compare the two and get everything but the intersection of the two lists. How can I do this (C#)?
If you mean the set of everything but the intersection (symmetric difference) you can try:
var set = new HashSet<Type>(list1); set.SymmetricExceptWith(list2);
1.4m articles
1.4m replys
5 comments
57.0k users