So i'm trying to make it as simple as possible, but stuck with finding the difference between my two Lists which both contain a Class called "Element". Each "Element" has 3 Propertys - Path,Name,Size. Now i want to compare ListA with ListB if ListA has a Element with the property Name that ListB doesn't have.
I already tried it with:
List<Element> diffList = from first in ListA
join second in ListB
on first.Name equals second.Name
select first;
which was quite weird since, ListA's Maximum count is at about 60.000 and the diffList had a count of 22 Million. Also i tried it with:
List<Element> diffList = ListA
.Where(w => !ListB.Contains(w.Name))
.ToList();
This wasn't even possible to compile.
Thanks in advance.