remove items from one list in another csharp

Code Example - remove items from one list in another csharp

                
                        destionList.RemoveAll(x => sourceList.Exists(y => y.Id == x.Id));
                    
                
 

csharp remove items from one list that are in another

                        
                                destinationList = destinationList.Except(excludeList).ToList();