I have two collections
List<CustomClass1> items1
List<CustomClass2> items2
CustomClass1 has a property KEY
CustomClass2 has a property KEY
i want to keep only those entries in items1 which have a matching key in items2. How can this be achieved through LINQ?
thanks
1 Answer