How to replace value in list at same collection location
Do you mean:
yourCollection[2] = "Snail";
In a bigger List<T>
collection, you would like to find index to replace...with:
var i = animals.FindIndex(x => x == "Dog");
animals[i] = "Snail";