INotifyCollectionChanged: Added item does not appear at given index '0'

前端 未结 3 1230
情歌与酒
情歌与酒 2020-12-20 18:03

I\'m making a observable class. The Add methods works fine. But then I\'m trying to call the Remove() method I get this error:

\"Added item does not a

3条回答
  •  天命终不由人
    2020-12-20 18:22

    I tracked down the issue with Reflector and figured out the cause of this exception might refer to Equals not returning true for actually equal objects in your list; or maybe operator ==.

提交回复
热议问题