Except and two List<string> comparison question</string>
-
Hi all, I am trying to compare two List. I only want the values that the other one does not have. For example:
List 1
123
456
789
495List 2
123
564
456
458I have tried the following with no result:
listOne.Distinct().Except(listTwo.Distinct());
Many thanks in advance Kind regards,The only programmers that are better C# programmers, are those who look like this -> :bob:
:)Programm3r My Blog: ^_^
-
Hi all, I am trying to compare two List. I only want the values that the other one does not have. For example:
List 1
123
456
789
495List 2
123
564
456
458I have tried the following with no result:
listOne.Distinct().Except(listTwo.Distinct());
Many thanks in advance Kind regards,The only programmers that are better C# programmers, are those who look like this -> :bob:
:)Programm3r My Blog: ^_^
Hi all, Nevermind ... stupid mistake ... never took the spaces out of the second
List
:omg: :wtf:The only programmers that are better C# programmers, are those who look like this -> :bob:
:)Programm3r My Blog: ^_^