Why aren't classes like BindingList or ObservableCollection thread-safe?

前端 未结 4 1461
难免孤独
难免孤独 2021-01-31 18:27

Time and time again I find myself having to write thread-safe versions of BindingList and ObservableCollection because, when bound to UI, these controls cannot be changed from m

4条回答
  •  花落未央
    2021-01-31 18:59

    If you want to go crazy - here's a ThreadedBindingList that does notifications back on the UI thread automatically. However, it would still only be safe for one thread to be making updates etc at a time.

提交回复
热议问题