How can I make an Observable Hashset in C#?

后端 未结 3 1539
轮回少年
轮回少年 2020-12-14 19:50

Currently I am using an ObservableCollection within a WPF application, the application is an implementation of Conway\'s Game of life and works well for about 500 cells but

3条回答
  •  星月不相逢
    2020-12-14 20:34

    I've posted a complete ObservableHashSet here that you can use.

    https://github.com/BellaCode/Public/tree/master/ObservableHashSet

    It is based of reflecting on how ObservableCollection is implemented and provides the same thread-safety re-entrancy checks.

提交回复
热议问题