Compare two arrays using LINQ
问题 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