DictionaryValueHolder question
Hello, Unlike the CollectionValueHolder, the DictionaryValueHolder only notifies you that something has changed, rather than tell you what item has been added or removed. Does anyone know if this is by design, or just incomplete? If incomplete, what do you think about using the ValueAdded/ValueChanged/ValueRemoved announcements and passing the association in newValue/oldValue? Thank you, Rob
Hi Rob, this is by omission. Originally CollectionValueHolder didn't have it either until I've introduced ValueAdded/ValueRemoved. So feel free to incorporate it in a meaningful fashion to a DictionaryHolder. Peter On Tue, Sep 12, 2017 at 3:46 AM, Rob Rothwell <r.j.rothwell@gmail.com> wrote:
Hello,
Unlike the CollectionValueHolder, the DictionaryValueHolder only notifies you that something has changed, rather than tell you what item has been added or removed. Does anyone know if this is by design, or just incomplete?
If incomplete, what do you think about using the ValueAdded/ValueChanged/ValueRemoved announcements and passing the association in newValue/oldValue?
Thank you,
Rob
Hi Peter, Thank you very much for the clarification; I'll see what I can come up with! Take care, Rob On Tue, Sep 12, 2017 at 11:18 AM, Peter Uhnák <i.uhnak@gmail.com> wrote:
Hi Rob,
this is by omission. Originally CollectionValueHolder didn't have it either until I've introduced ValueAdded/ValueRemoved. So feel free to incorporate it in a meaningful fashion to a DictionaryHolder.
Peter
On Tue, Sep 12, 2017 at 3:46 AM, Rob Rothwell <r.j.rothwell@gmail.com> wrote:
Hello,
Unlike the CollectionValueHolder, the DictionaryValueHolder only notifies you that something has changed, rather than tell you what item has been added or removed. Does anyone know if this is by design, or just incomplete?
If incomplete, what do you think about using the ValueAdded/ValueChanged/ValueRemoved announcements and passing the association in newValue/oldValue?
Thank you,
Rob
incomplete I would use Announcement. On Tue, Sep 12, 2017 at 3:46 AM, Rob Rothwell <r.j.rothwell@gmail.com> wrote:
Hello,
Unlike the CollectionValueHolder, the DictionaryValueHolder only notifies you that something has changed, rather than tell you what item has been added or removed. Does anyone know if this is by design, or just incomplete?
If incomplete, what do you think about using the ValueAdded/ValueChanged/ValueRemoved announcements and passing the association in newValue/oldValue?
Thank you,
Rob
Yes this is why I said that we should use them On Wed, Sep 13, 2017 at 10:40 AM, Peter Uhnák <i.uhnak@gmail.com> wrote:
On Wed, Sep 13, 2017 at 9:45 AM, Stephane Ducasse <stepharo.self@gmail.com> wrote:
incomplete I would use Announcement.
ValueAdded/ValueChanged/ValueRemoved are all announcements.
P
participants (3)
-
Peter Uhnák -
Rob Rothwell -
Stephane Ducasse