For example, I have two arrays:
string[] arrayOne = {"One", "Two", "Three", "Three", "Three"};
string[] arrayTwo = {"One", "Two", "Three"};
var result = arrayOne.Except(arrayTwo);
foreach (string s in result) Console.WriteLine(s);
I want Items from arrayOne which are not there in arrayTwo. So here I need result as: Three Three
but I am getting no results as its treating "Three" as common and not checking the other two items("Three", "Three").
I dont want to end up writing a huge method to solve this. Tried couple other answer on SO but didnt worked as expected :(.
Thanks!!!
{"One", "Two", "Three", "Three"};?Three. That is only 1 itemstring[] arrayTwo = {"Two", "Three", "Three", "One"};would still filter "One" out ofarrayOne... Habib's doesn't do that.