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
Post a Comment