So, I have a list of integers called itemIds and a list of objects called items, how can I rewrite this :
List<int> itemIds;
List<object> items;
for (itemIds.Select(old => (!items.Any(i => i.itemId == old))))
{
ItemService.ItemDeleteById(old);
}
Now it fails, it asks for ";" after the last paranthesis of the for and it doesn't recognize the old variable.I want to delete the items that meet that condition. Thanks !