c# - How do update an item in an ObservableCollection? -


i have , observablecollection reason code not work.

 private void updatechildreninclass()     {         var item = childreninclass.firstordefault(i => i.name == currentchild.name);         if (item != null)         {             item = currentchild;          }     } 

item displays currentchild properties if in chidreninclass item properties have not been updated.

the problem item pointing object in observablecollection wanted update, set item point object(currentchild)


Popular posts from this blog

Apache NiFi ExecuteScript: Groovy script to replace Json values via a mapping file -

node.js - How do I prevent MongoDB replica set from querying the primary? -

python 3.x - PyQt5 - Signal : pyqtSignal no method connect -