Suppose I have an ICollection.
ICollection
I have the following two variables:
SomeClass old; SomeClass new;
How
The ICollection interface is quite limited, you will have to use Remove() and Add()
Remove()
Add()
collection.Remove(old); collection.Add(new);