Suppose I have an ICollection.
ICollection
I have the following two variables:
SomeClass old; SomeClass new;
How
Do that:
yourCollection.ToList()[index] = newValue;