Compare two List<string> and print the duplicates
Use Enumerable.Intersect method
List<string> duplicates = list1.Intersect(list2).ToList();
Use Enumerable.Intersect method
List<string> duplicates = list1.Intersect(list2).ToList();