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++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -