compare List<string> and List<T>
问题 I'm using C# and framework 4.0. I have a list of type string and another list of type class T; How can I compare List with a List and save the difference? private void simpleButton_Compare_Click(object sender, EventArgs e) { try { bool Is_Egal = true; int i = 0; foreach (string Od_Scan in Ordre_Scan) { if (!Outils.Get_Ordre_Donne()[i].NoOrdre.Contains(Od_Scan) && !String.IsNullOrWhiteSpace(Od_Scan)) { Is_Egal = false; Temp_Od_Scan.Add(Od_Scan); } i++; } foreach (Pers_Compare Od_Done in Outils