I usually just create a list for all the objects to be removed or added.
Within the foreach
I just add the items to the appropriate collections and modify the original collection after the foreach
have completed (loop through the removeItems
and addItems
collection)