c# - How can an ObservableCollection fire a Replace action? -


in documentation of event args of notifycollectionchangedeventargs, there action called replace (in addition add, remove, move, etc.). when can fired? can't see replace method in observablecollection

here example:

observablecollection<string> mycollection = new observablecollection<string>; mycollection.add("one"); mycollection.add("two"); mycollection.add("three"); mycollection.add("four"); mycollection.add("five");  mycollection[4] = "six"; // replace (i.e. set) 

Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -