Opened 3 years ago

Last modified 18 months ago

#2240 new defect

Events for adding items to ObservableDictionary are not consistent

Reported by: abeham Owned by:
Priority: medium Milestone: HeuristicLab 4.0
Component: Collections Version: 3.3.10
Keywords: Cc:


The following code fires ItemsAdded if element key was not present in the dictionary yet:

observableDict[key] = val;

whereas the following code fires ItemsAdded as well as PropertyChanged 4(!) times with "Item[]", "Keys", "Values", and "Count" as property names:

observableDict.Add(key, val);

Both ways should lead to the same events being fired.

Change History (3)

comment:1 Changed 2 years ago by ascheibe

  • Milestone changed from HeuristicLab 3.3.11 to HeuristicLab 3.3.12

comment:2 Changed 23 months ago by ascheibe

  • Milestone changed from HeuristicLab 3.3.12 to HeuristicLab 3.3.13

comment:3 Changed 18 months ago by mkommend

  • Milestone changed from HeuristicLab 3.3.13 to HeuristicLab 4.0
Note: See TracTickets for help on using tickets.