.NET ObservableDictionary

前端 未结 6 1263
感情败类
感情败类 2020-11-27 03:07

I have written the following class which implements(or tries to!) a dictionary with notifications:

public partial class ObservableDictionary

        
6条回答
  •  一向
    一向 (楼主)
    2020-11-27 03:25

    I rolled out my own: https://www.nuget.org/packages/hellosam.net.collections/

    It uses AVL tree so operations are O(log N) instead, where most implementations I have seen using List.indexOf() are O(N).

    It can even observe your item INotifyPropertyChanged and convert them to a observable collection event, so to keep the DataGrid sort/group response to the change.

提交回复
热议问题