how to add to a list only items that are not already in the list csharp
Code Example - how to add to a list only items that are not already in the list csharp
CurrentCollection.AddRange(NewItems.Where(x => !CurrentCollection.Any(y => y.valueToCheck == x.valueToCheck)));